Ideas for improvement
moving rules up in the role hierarchy
merging roles
role hierarchy
Merge-able Rules: respect if_permitted_to hash
# File lib/declarative_authorization/development_support/analyzer.rb, line 24 def analyze (rules) sexp_array = RubyParser.new.parse(rules) #sexp_array = ParseTree.translate(rules) @reports = [] [MergeableRulesProcessor].each do |parser| parser.new(self).analyze(sexp_array) end [ RoleExplosionAnalyzer, InheritingPrivilegesAnalyzer, ProposedPrivilegeHierarchyAnalyzer ].each do |parser| parser.new(self).analyze end end
# File lib/declarative_authorization/development_support/analyzer.rb, line 39 def reports @reports or raise "No rules analyzed!" end