Sha256: 5eba5583e1db43e52f9573af9fa578b641e864d768aab71e3466bc1474438ba3

Contents?: true

Size: 805 Bytes

Versions: 9

Compression:

Stored size: 805 Bytes

Contents

require File.join(%w{declarative_authorization rails_legacy})
require File.join(%w{declarative_authorization helper})
require File.join(%w{declarative_authorization in_controller})
require File.join(%w{declarative_authorization in_model})
require File.join(%w{declarative_authorization obligation_scope})

min_rails_version = "2.1.0"
if Rails::VERSION::STRING < min_rails_version
  raise "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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
declarative_authorization-0.5.5 lib/declarative_authorization.rb
declarative_authorization-0.5.4 lib/declarative_authorization.rb
declarative_authorization-0.5.3 lib/declarative_authorization.rb
declarative_authorization-0.5.2 lib/declarative_authorization.rb
declarative_authorization-dta-0.1.3 lib/declarative_authorization.rb
declarative_authorization-0.5.1 lib/declarative_authorization.rb
declarative_authorization-dta-0.1.1 lib/declarative_authorization.rb
declarative_authorization-dta-0.1 lib/declarative_authorization.rb
declarative_authorization-0.5 lib/declarative_authorization.rb