Sha256: 6925ed657e0316f2febbad6dd208f395aca16e6d18a4b77c804cff92d5cc124d
Contents?: true
Size: 641 Bytes
Versions: 1
Compression:
Stored size: 641 Bytes
Contents
require 'abilities/action_controller/base' require 'abilities/action_view/base' require 'abilities/proxy' require 'abilities/configuration' require 'abilities/definitions' require 'abilities/exceptions' require 'abilities/concern' require 'abilities/railtie' module Abilities class << self def configure yield configuration end def configuration @configuration ||= Configuration.new end def define(&block) @block = block end def can?(actor, action, subject) Definitions.new(actor, &@block).can?(action, subject) end def cannot?(*args) !can?(*args) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
abilities-0.1.2 | lib/abilities.rb |