Sha256: 132aeae36321cd0ef2b31957f388e22e7d75005deb53e13a788d60af109f9ad8

Contents?: true

Size: 312 Bytes

Versions: 1

Compression:

Stored size: 312 Bytes

Contents

module AttributeExt
  class Railtie < Rails::Railtie
    initializer 'attribute_ext' do |app|
      ActiveSupport.on_load :active_record do
        ActiveRecord::Base.send :include, AttributeExt::HiddenAttributes
        ActiveRecord::Base.send :include, AttributeExt::SafeAttributes
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
attribute_ext-1.1.0 lib/attribute_ext/railtie.rb