Sha256: d73e7f2f9b804d211967fba8569e6939cdf6daf13e9a908a70a37197c27f3b3d

Contents?: true

Size: 275 Bytes

Versions: 2

Compression:

Stored size: 275 Bytes

Contents

module Protector
  class Engine < ::Rails::Engine
    config.protector = ActiveSupport::OrderedOptions.new

    initializer "protector.configuration" do |app|
      app.config.protector.each do |key, value|
        Protector.send "#{key}=", value
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
protector-0.4.1 lib/protector/engine.rb
protector-0.4.0 lib/protector/engine.rb