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

Version Path
protector-0.6.4 lib/protector/engine.rb
protector-0.6.3 lib/protector/engine.rb
protector-0.6.2 lib/protector/engine.rb
protector-0.6.1 lib/protector/engine.rb
protector-0.6.0 lib/protector/engine.rb
protector-0.6.0.beta.1 lib/protector/engine.rb
protector-0.5.5 lib/protector/engine.rb
protector-0.5.4 lib/protector/engine.rb
protector-0.5.3 lib/protector/engine.rb
protector-0.5.2 lib/protector/engine.rb
protector-0.5.1 lib/protector/engine.rb