Sha256: 0bb694ef948cd917f209f7a3b9a1cbbbbe3f02c88e71cd89b6e1af3376566325

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

require 'phi_attrs'
require 'rails'

module PhiAttrs
  class Railtie < Rails::Railtie
    initializer 'phi_attrs.initialize' do |_app|
      ActiveSupport.on_load(:active_record) do
        ActiveSupport.on_load(:active_record) { extend PhiAttrs::Model }
        ActiveSupport.on_load(:action_controller) { include PhiAttrs::Controller }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phi_attrs-0.3.2 lib/phi_attrs/railtie.rb
phi_attrs-0.3.1 lib/phi_attrs/railtie.rb
phi_attrs-0.3.0 lib/phi_attrs/railtie.rb