Sha256: c925f781915d87acefffe9f11c121479695e5a44bf5813c963573099f3f158ef

Contents?: true

Size: 483 Bytes

Versions: 4

Compression:

Stored size: 483 Bytes

Contents

require "access-granted/exceptions"
require "access-granted/policy"
require "access-granted/permission"
require "access-granted/role"
require "access-granted/rails/controller_methods"

module AccessGranted

end

if defined? ActionController::Base
  ActionController::Base.class_eval do
    include AccessGranted::Rails::ControllerMethods
  end
end

if defined? ActionController::API
  ActionController::API.class_eval do
    include AccessGranted::Rails::ControllerMethods
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
access-granted-1.2.0 lib/access-granted.rb
access-granted-1.1.2 lib/access-granted.rb
access-granted-1.1.1 lib/access-granted.rb
access-granted-1.1.0 lib/access-granted.rb