Sha256: fa4df3278c0b90e3351b195dda0065f234718b7421ca11b0b93021806864022e
Contents?: true
Size: 403 Bytes
Versions: 3
Compression:
Stored size: 403 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::Adapters::StrongParameters) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
protector-0.7.7 | lib/protector/engine.rb |
protector-0.7.6 | lib/protector/engine.rb |
protector-0.7.4 | lib/protector/engine.rb |