Sha256: 0a509a329db21c8d044027df9de75abdcbb0ed6d88a05efd01cbad67c5662796

Contents?: true

Size: 483 Bytes

Versions: 5

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

5 entries across 5 versions & 1 rubygems

Version Path
access-granted-1.0.4 lib/access-granted.rb
access-granted-1.0.3 lib/access-granted.rb
access-granted-1.0.2 lib/access-granted.rb
access-granted-1.0.1 lib/access-granted.rb
access-granted-0.2.1 lib/access-granted.rb