Skip to content
Snippets Groups Projects
Commit 4dfda5f2 authored by http://jneen.net/'s avatar http://jneen.net/
Browse files

declarative_policy rubocop fix

parent 0487009d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -28,8 +28,9 @@ module DeclarativePolicy
 
subject = find_delegate(subject)
 
class_for_class(subject.class) \
or raise "no policy for #{subject.class.name}"
policy_class = class_for_class(subject.class)
raise "no policy for #{subject.class.name}" if policy_class.nil?
policy_class
end
 
def has_policy?(subject)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment