Sha256: 4314953f48b05dd180cde2f7d1298e81815736752b5f5b3148bd15608d6cc9ad

Contents?: true

Size: 426 Bytes

Versions: 2

Compression:

Stored size: 426 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::AmicoUser
      end
    end

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

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_amico-0.1.1 lib/acts_as_amico/railtie.rb
acts_as_amico-0.1.0 lib/acts_as_amico/railtie.rb