Sha256: 026da40acd0f287d94dcb7aea40a4c36f264b8655b5ae9532c0c1dcc7df905c8
Contents?: true
Size: 437 Bytes
Versions: 21
Compression:
Stored size: 437 Bytes
Contents
module CanTango class PermissionEngine < Engine module Parser class Categories def parse categories, key, obj, &blk case obj when Array categories[key] = obj else raise "Each key must have a YAML hash that defines which models make up the category (related kinds of items)" end yield categories if blk end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems