rails_admin_settings 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,8 +15,8 @@ end
15
15
  require "rails_admin_settings/types"
16
16
  require "rails_admin_settings/settings"
17
17
 
18
- require File.dirname(__FILE__) + '/../app/models/rails_admin_settings/setting.rb'
19
-
20
18
  if Object.const_defined?('Rails')
21
19
  require "rails_admin_settings/engine"
20
+ else
21
+ require File.dirname(__FILE__) + '/../app/models/rails_admin_settings/setting.rb'
22
22
  end
@@ -1,6 +1,8 @@
1
1
  module RailsAdminSettings
2
2
  class Engine < ::Rails::Engine
3
3
  initializer 'RailsAdminSettings Install after_filter' do |app|
4
+ require File.dirname(__FILE__) + '/../../app/models/rails_admin_settings/setting.rb'
5
+
4
6
  if defined?(ActionController) and defined?(ActionController::Base)
5
7
  ActionController::Base.class_eval do
6
8
  after_filter { Settings.unload! }
@@ -1,3 +1,3 @@
1
1
  module RailsAdminSettings
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -292,7 +292,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
292
292
  version: '0'
293
293
  segments:
294
294
  - 0
295
- hash: 2203453324899384477
295
+ hash: -1867951047541267235
296
296
  required_rubygems_version: !ruby/object:Gem::Requirement
297
297
  none: false
298
298
  requirements:
@@ -301,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
301
  version: '0'
302
302
  segments:
303
303
  - 0
304
- hash: 2203453324899384477
304
+ hash: -1867951047541267235
305
305
  requirements: []
306
306
  rubyforge_project:
307
307
  rubygems_version: 1.8.25