Dropped mongoid for rails 4 support.
Use callable scopes.
Removed references to attr_protected.