Sha256: c5435ddaf1658887ff28cc088b3bfaf5ccf2256f14959b39107d630a0634c1c3

Contents?: true

Size: 287 Bytes

Versions: 10

Compression:

Stored size: 287 Bytes

Contents

require 'safe_attributes'
require 'rails'

module SafeAttributes
  class Railtie < ::Rails::Railtie
    initializer "safeattributes.active_record" do |app|
      ActiveSupport.on_load :active_record do
        ActiveRecord::Base.send :include, SafeAttributes
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
safe_attributes-1.0.10 lib/safe_attributes/railtie.rb
safe_attributes-1.0.9 lib/safe_attributes/railtie.rb
safe_attributes-1.0.8 lib/safe_attributes/railtie.rb
safe_attributes-1.0.7 lib/safe_attributes/railtie.rb
safe_attributes-1.0.6 lib/safe_attributes/railtie.rb
safe_attributes-1.0.5 lib/safe_attributes/railtie.rb
safe_attributes-1.0.4 lib/safe_attributes/railtie.rb
safe_attributes-1.0.3 lib/safe_attributes/railtie.rb
safe_attributes-1.0.2 lib/safe_attributes/railtie.rb
safe_attributes-1.0.1 lib/safe_attributes/railtie.rb