activeadmin-selleo-cms 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
1
1
  require "i18n/backend/fallbacks"
2
2
  I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
3
3
 
4
- #if ActiveRecord::Base.connection.table_exists? 'translations'
5
- # require 'i18n/backend/active_record'
6
- # I18n::Backend::ActiveRecord.send(:include, I18n::Backend::Fallbacks)
7
- # I18n.backend = I18n::Backend::Chain.new(I18n::Backend::ActiveRecord.new, I18n.backend)
8
- #end
4
+ if ActiveRecord::Base.connection.table_exists?('translations') and !Rails.env.development?
5
+ require 'i18n/backend/active_record'
6
+ I18n::Backend::ActiveRecord.send(:include, I18n::Backend::Fallbacks)
7
+ I18n.backend = I18n::Backend::Chain.new(I18n::Backend::ActiveRecord.new, I18n.backend)
8
+ end
@@ -1,3 +1,3 @@
1
1
  module ActiveadminSelleoCms
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-selleo-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-31 00:00:00.000000000 Z
12
+ date: 2013-01-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails