Sha256: f9fc6d5e28e74beceedd9f164385f41a7733f4bdcb44213a0d3acd8f74c89e34

Contents?: true

Size: 430 Bytes

Versions: 3

Compression:

Stored size: 430 Bytes

Contents

require 'acts_as_amico'
require 'rails'

module ActsAsAmico
  class Railtie < Rails::Railtie

    initializer "acts_as_amico.active_record" do |app|
      ActiveSupport.on_load :active_record do
        include ActsAsAmico::AmicoObject
      end
    end

    initializer "acts_as_amico.active_resource" do |app|
      ActiveSupport.on_load :active_resource do
        include ActsAsAmico::AmicoObject
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
acts_as_amico-0.2.4 lib/acts_as_amico/railtie.rb
acts_as_amico-0.2.2 lib/acts_as_amico/railtie.rb
acts_as_amico-0.2.0 lib/acts_as_amico/railtie.rb