Sha256: 484ecfbbed44e4ed12f9e2c9ef088222aced0ab9928b723ef25ab3f0250296be
Contents?: true
Size: 587 Bytes
Versions: 5
Compression:
Stored size: 587 Bytes
Contents
module Aclize class Acl::Role require "aclize/acl/controllers_registry" require "aclize/acl/paths_registry" def initialize(name) @name = name.to_s @controllers = Aclize::Acl::ControllersRegistry.new @paths = Aclize::Acl::PathsRegistry.new end def controllers(&block) if block_given? @controllers.instance_eval(&block) else return @controllers end end def paths(&block) if block_given? @paths.instance_eval(&block) else return @paths end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
aclize-1.0.1 | lib/aclize/acl/role.rb |
aclize-1.0.0 | lib/aclize/acl/role.rb |
aclize-0.2.2 | lib/aclize/acl/role.rb |
aclize-0.2.1 | lib/aclize/acl/role.rb |
aclize-0.2.0 | lib/aclize/acl/role.rb |