lib/effective_developer/engine.rb in effective_developer-0.4.1 vs lib/effective_developer/engine.rb in effective_developer-0.4.2
- old
+ new
@@ -6,13 +6,13 @@
initializer 'effective_developer.defaults', before: :load_config_initializers do |app|
# Set up our defaults, as per our initializer template
eval File.read("#{config.root}/config/effective_developer.rb")
end
- # Include acts_as_addressable concern and allow any ActiveRecord object to call it
+ # Whenever the effective_resource do block is evaluated, check for changes
initializer 'effective_developer.effective_resources' do |app|
ActiveSupport.on_load :effective_resource do
- #Effective::Migrator.new(self).migrate!
+ Effective::LiveGenerator.new(self).generate! if EffectiveDeveloper.live
end
end
end
end