…ame to find members
Load datamapper class methods via append_extensions.
This relaxes the previous requirement that cancan has to be loaded before any models are. append_extensions will apply to all previously loaded models as well as ones loaded after.
Make CanCan Default Message a translatable text.
…ataMapper - closes #373
…isn't found - closes #366
Fixes bug in mongoid_adapter with empty conditions hash
1) remove all empty conditions hashes from the rules, they are included in the records through `@model_class.all` 2) only process can rules if the new and old rules lists are the same length (meaning there were no empty conditions hashes) 3) always process cannot rules
* adds mongoid query that matches every record when rule.conditions.empty? is true
…ents. Augments Mongoid adapter by handling case where attribute is an array
Same limitations apply as with active record * can not be OR'd with other rules for same ability/controller
…/cancan into socialcast-optional-associations
…hrow exceptions if the associated object was not present at the rule match time.
…ss. May fix ryanb/cancan#328 :)