Sha256: 926e26171651931877a084e46d582d127c9bb17a15f6cff2a9f26b1223effb1d
Contents?: true
Size: 393 Bytes
Versions: 4
Compression:
Stored size: 393 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
protector-0.7.3 | lib/protector/engine.rb |
protector-0.7.2 | lib/protector/engine.rb |
protector-0.7.1 | lib/protector/engine.rb |
protector-0.7.0 | lib/protector/engine.rb |