Sha256: ae8602018cde22d6b71a4a7ace22a8e4cc2b6e8d2df9230846ac4021d0fdec4c

Contents?: true

Size: 359 Bytes

Versions: 1

Compression:

Stored size: 359 Bytes

Contents

module Economy
  class Railtie < Rails::Railtie

    initializer 'economy.active_record' do
      ActiveSupport.on_load :active_record do
        require 'economy/exchange'
        ::ActiveRecord::Base.include(
          Economy::Extensions::ActiveRecord::Base
        )
      end
    end

    rake_tasks do
      load 'tasks/economy.rake'
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
economy-4.0.2.0 lib/economy/railtie.rb