Sha256: 685f3f5859a4ae6c0b7ccb7f77a242af6b019b4421129df2baa791073d6c14da
Contents?: true
Size: 573 Bytes
Versions: 1
Compression:
Stored size: 573 Bytes
Contents
require 'governor/plugin' require 'governor/plugin_manager' require 'governor/article' require 'governor/formatters' require 'governor/mapping' require 'governor/controllers/helpers' require 'governor/rails' module Governor mattr_reader :resources, :authorization_rules, :default_resource mattr_accessor :if_not_allowed, :author @@resources = {} def self.map(resource, options = {}) @@default_resource ||= self.resources[resource] = Governor::Mapping.new(resource, options) end def self.authorize_if(&blk) @@authorization_rules = blk end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
governor-0.2.0 | lib/governor.rb |