lib/cantango/permit_store/parser/permit.rb
def parse &block
      # Forget keys because I don't know what to do with them
      permit_rules.each do |type, rules|
        add_permit parse_permit(type, rules, &block)
      end
    end
# Parses for a Hash of the form:
# cache:
#   can:
#     edit: [Project, Post]
#   cannot:
#     publish: Project      
# no_cache:
#
# this parser will delegate to a Permit mode parser


this parser will delegate to a Permit mode parser
this parser will delegate to a Permit mode parser
def parse &block
      permit_rules.each do |type, rules|
        add_permit parse_permit(type, rules, &block)
      end
    end
def parse & block permit_rules . each do | type , rules | add_permit parse_permit ( type , rules , & block ) end end
Parses for a Hash of the form:
cache:
can:
edit: [Project, Post]
cannot:
publish: Project
no_cache:
Parses for a Hash of the form : cache : can : edit : [ Project Post ] cannot : publish : Project no_cache :
# Forget keys because I don't know what to do with them
block