Commit 4df66bb9e2498c6e1fedecf95197f156354ff675

Authored by freedomprogramer
1 parent 82a7292c
Exists in master

only production env eager load

lib/has_magic_fields.rb
... ... @@ -5,7 +5,7 @@ module HasMagicFields
5 5 class Engine < ::Rails::Engine
6 6 paths = Dir[File.dirname(__FILE__), '/app/models/**/']
7 7  
8   - if !Rails.env.development?
  8 + if Rails.env.production?
9 9 config.eager_load_paths += paths
10 10 end
11 11 end
... ...
lib/has_magic_fields/version.rb
1 1 module HasMagicFields
2   - VERSION = "0.2.6"
  2 + VERSION = "0.2.7"
3 3 end
... ...