CanCan::Ability
Instance methods
Block also receiving the checked attribute (gem's two-argument block).
{any: [subjects]} — true if any subject has a matching rule (the first matched rule wins, can or cannot).
Nested subject (the gem's {parent => child} hash): conditions
involving the parent association are checked against the parent.
permissions (mirror of ability.rb): renders the same nested hash string the gem's Hash#inspect produces.
Attributes permitted for strong parameters: reversed relevant rules add (can) / remove (cannot); a rule without attribute restrictions permits every column. Returns Array(String) — Crystal has no runtime String#to_sym (documented deviation from the gem's symbol array).
relevant rules in evaluation order (last defined first, deduped) — mirrors rules.rb reverse+uniq.