lib/canner/policy.rb in canner-0.2.0 vs lib/canner/policy.rb in canner-0.2.1

- old
+ new

@@ -11,10 +11,10 @@ # if you handle your roles differently you'll need to override. # use: rails g canner:fetch_roles # expects an array or strings or symbols that represent the user roles def fetch_roles - @current_user.roles + @current_user.nil? ? [] : @current_user.roles end # implement in your policy class to auto scope in an action def canner_scope raise ArgumentError.new("NOT IMPLEMENTED")