Sha256: 3c89c54efe2f2e0d2344e5cbc0f150c57cc1ecfcdbcdc6bd8a4b2f22437dd891

Contents?: true

Size: 808 Bytes

Versions: 6

Compression:

Stored size: 808 Bytes

Contents

require File.join(%w{declarative_authorization helper})
require File.join(%w{declarative_authorization in_controller})
if defined?(ActiveRecord)
  require File.join(%w{declarative_authorization in_model})
  require File.join(%w{declarative_authorization obligation_scope})
end

min_rails_version = '4.2.5.2'
if Rails::VERSION::STRING < min_rails_version
  raise "ae_declarative_authorization requires Rails #{min_rails_version}. You are using #{Rails::VERSION::STRING}."
end

require File.join(%w{declarative_authorization railsengine}) if defined?(::Rails::Engine)

ActionController::Base.send :include, Authorization::AuthorizationInController
ActionController::Base.helper Authorization::AuthorizationHelper

ActiveRecord::Base.send :include, Authorization::AuthorizationInModel if defined?(ActiveRecord)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ae_declarative_authorization-0.8.0 lib/declarative_authorization.rb
ae_declarative_authorization-0.7.0 lib/declarative_authorization.rb
ae_declarative_authorization-0.6.0 lib/declarative_authorization.rb
ae_declarative_authorization-0.6.0.pre3 lib/declarative_authorization.rb
ae_declarative_authorization-0.6.0.pre2 lib/declarative_authorization.rb
ae_declarative_authorization-0.6.0.pre lib/declarative_authorization.rb