lib/canard/user_model.rb in canard-0.4.3 vs lib/canard/user_model.rb in canard-0.5.0.pre
- old
+ new
@@ -71,10 +71,10 @@
roles_attribute options[:roles_mask] if options.has_key?(:roles_mask)
roles options[:roles] if options.has_key?(:roles) && has_roles_mask_accessors?
- add_role_scopes if respond_to?(:add_role_scopes, true)
+ add_role_scopes(prefix: options[:prefix]) if respond_to?(:add_role_scopes, true)
end
private
# This is overridden by the ActiveRecord adapter as the attribute accessors