Sha256: fae8e3ad2b9a118022dcd9660a1dbe7d08bf5f4bdf1f018ac948baf9f8d4e8f9

Contents?: true

Size: 250 Bytes

Versions: 1

Compression:

Stored size: 250 Bytes

Contents

require 'phi_attrs'
require 'rails'

module PhiAttrs
  class Railtie < Rails::Railtie
    initializer 'rolify.initialize' do
      ActiveSupport.on_load(:active_record) do
        ActiveRecord::Base.send :extend, PhiAttrs
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phi_attrs-0.1.0 lib/phi_attrs/railtie.rb