Sha256: f6fe9565e759b91ee097027dd76cdb060382fe662e9cd1ee2df83799078e1683
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 Bytes
Contents
module Cancannible mattr_accessor :refinements mattr_accessor :get_cached_abilities mattr_accessor :store_cached_abilities # Default way to configure the gem. Yields a block that gives access to all the config variables. # Calling setup will reset all existing values. def self.setup reset! yield self self end def self.reset! self.refinements = [] self.get_cached_abilities = nil self.store_cached_abilities = nil end reset! def self.refine_access(refinement={}) self.refinements << refinement end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cancannible-0.0.1 | lib/cancannible/config.rb |