lib/miau/application_policy.rb in miau-1.1.1 vs lib/miau/application_policy.rb in miau-1.1.6

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true class ApplicationPolicy - attr_accessor :user, :resource + attr_accessor :user, :resource, :action def self.miau(actions, meth = nil, &block) kls = name.underscore[0..-8] # remove "_policy" [actions].flatten.each { |action| Miau::PolicyStorage.instance.add_policy(kls, action, meth)