Sha256: db97f928a6293bb7b7b64e72d6e109281a00d5c4d4b8827318251adb1c3150e1
Contents?: true
Size: 751 Bytes
Versions: 7
Compression:
Stored size: 751 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 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
7 entries across 7 versions & 1 rubygems