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
@@ -28,8 +28,9 @@ module DeclarativePolicy
Loading
@@ -28,8 +28,9 @@ module DeclarativePolicy
   
subject = find_delegate(subject) subject = find_delegate(subject)
   
class_for_class(subject.class) \ policy_class = class_for_class(subject.class)
or raise "no policy for #{subject.class.name}" raise "no policy for #{subject.class.name}" if policy_class.nil?
policy_class
end end
   
def has_policy?(subject) 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