Sha256: c309f0862c88dda13a63484f6363fe515b9c7872830d9030e35f786faec704df

Contents?: true

Size: 714 Bytes

Versions: 27

Compression:

Stored size: 714 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

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

ActiveRecord::Base.send :include, Authorization::AuthorizationInModel

Version data entries

27 entries across 27 versions & 10 rubygems

Version Path
rubycs-declarative_authorization-0.3.0 lib/declarative_authorization.rb
rubycs-declarative_authorization-0.3.1 lib/declarative_authorization.rb
stffn-declarative_authorization-0.2.4 lib/declarative_authorization.rb
stffn-declarative_authorization-0.2.5 lib/declarative_authorization.rb
stffn-declarative_authorization-0.3.0 lib/declarative_authorization.rb
stffn-declarative_authorization-0.3.1 lib/declarative_authorization.rb
stffn-declarative_authorization-0.3.2.1 lib/declarative_authorization.rb
stffn-declarative_authorization-0.3.2.2 lib/declarative_authorization.rb
stffn-declarative_authorization-0.3.2 lib/declarative_authorization.rb
tma-declarative_authorization-0.3.2.1 lib/declarative_authorization.rb
tma-declarative_authorization-0.3.2.2 lib/declarative_authorization.rb
uhees-declarative_authorization-0.3.1 lib/declarative_authorization.rb
uhees-declarative_authorization-0.3.2.2.1 lib/declarative_authorization.rb
timcharper-declarative_authorization-0.4.1.6 lib/declarative_authorization.rb
timcharper-declarative_authorization-0.4.1.5 lib/declarative_authorization.rb
timcharper-declarative_authorization-0.4.1.4 lib/declarative_authorization.rb
timcharper-declarative_authorization-0.4.1.3 lib/declarative_authorization.rb
tarsolya-declarative_authorization-0.4.1.2 lib/declarative_authorization.rb
tarsolya-declarative_authorization-0.4.1 lib/declarative_authorization.rb
timcharper-declarative_authorization-0.4.1.2 lib/declarative_authorization.rb