Sha256: c7bf5caaf69d863ccf1ca4a85ba6a0f14a4936f8e5fb650437967091dbf37bc2
Contents?: true
Size: 967 Bytes
Versions: 2
Compression:
Stored size: 967 Bytes
Contents
module EffectiveAddresses class Engine < ::Rails::Engine engine_name 'effective_addresses' config.autoload_paths += Dir["#{config.root}/app/models/concerns"] config.autoload_paths += Dir["#{config.root}/app/models/validators"] # Include Helpers to base application initializer 'effective_addresses.action_controller' do |app| ActiveSupport.on_load :action_controller do helper EffectiveAddressesHelper end end # Include acts_as_addressable concern and allow any ActiveRecord object to call it initializer 'effective_addresses.active_record' do |app| ActiveSupport.on_load :active_record do ActiveRecord::Base.extend(ActsAsAddressable::ActiveRecord) end end # Set up our default configuration options. initializer 'effective_addresses.defaults', before: :load_config_initializers do |app| eval File.read("#{config.root}/config/effective_addresses.rb") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
effective_addresses-1.8.0 | lib/effective_addresses/engine.rb |
effective_addresses-1.7.4 | lib/effective_addresses/engine.rb |