Sha256: 83ca95b53a22a132972c610c857238fcf9576727c929566d98347d0c936c9872
Contents?: true
Size: 388 Bytes
Versions: 11
Compression:
Stored size: 388 Bytes
Contents
module Protector class Engine < ::Rails::Engine config.protector = ActiveSupport::OrderedOptions.new initializer "protector.configuration" do |app| app.config.protector.each{|k,v| Protector.config[k] = v} if Protector::Adapters::ActiveRecord.modern? ::ActiveRecord::Base.send(:include, Protector::ActiveRecord::StrongParameters) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems