Sha256: bf73116c6cfe18db30fd71a7f1f41804288cacd8f09cfbe8f20d7a64704ad818

Contents?: true

Size: 801 Bytes

Versions: 13

Compression:

Stored size: 801 Bytes

Contents

module Arrthorizer
  module Rails
    autoload :ControllerAction,         "arrthorizer/rails/controller_action"
    autoload :ControllerConfiguration,  "arrthorizer/rails/controller_configuration"
    autoload :ControllerConcern,        "arrthorizer/rails/controller_concern"
    autoload :ControllerContextBuilder, "arrthorizer/rails/controller_context_builder"
    autoload :Configuration,            "arrthorizer/rails/configuration"

    class Engine < ::Rails::Engine
      config.to_prepare do
        Arrthorizer::Rails::Configuration.load
      end
    end

  module_function
    def initialize!
      ActionController::Base.send(:include, ControllerConcern)

      if defined?(ActionController::API)
        ActionController::API.send(:include, ControllerConcern)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
arrthorizer-0.4.2 lib/arrthorizer/rails.rb
arrthorizer-0.4.1 lib/arrthorizer/rails.rb
arrthorizer-0.3.2 lib/arrthorizer/rails.rb
arrthorizer-0.3.1 lib/arrthorizer/rails.rb
arrthorizer-0.3.0 lib/arrthorizer/rails.rb
arrthorizer-0.2.1 lib/arrthorizer/rails.rb
arrthorizer-0.2.0 lib/arrthorizer/rails.rb
arrthorizer-0.1.3 lib/arrthorizer/rails.rb
arrthorizer-0.1.2 lib/arrthorizer/rails.rb
arrthorizer-0.1.1 lib/arrthorizer/rails.rb
arrthorizer-0.1.0 lib/arrthorizer/rails.rb
arrthorizer-0.1.0.pre2 lib/arrthorizer/rails.rb
arrthorizer-0.1.0.pre lib/arrthorizer/rails.rb