Sha256: f7be6ad43fcd48cc89325f2ef996eaaa943a967f1dc7c27e3376388e48e1f432
Contents?: true
Size: 682 Bytes
Versions: 1
Compression:
Stored size: 682 Bytes
Contents
module EffectiveDeveloper class Engine < ::Rails::Engine engine_name 'effective_developer' # Set up our default configuration options. 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 # 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::LiveGenerator.new(self).generate! if EffectiveDeveloper.live end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
effective_developer-0.4.2 | lib/effective_developer/engine.rb |