lib/evil/client/policy.rb in evil-client-2.1.0 vs lib/evil/client/policy.rb in evil-client-2.1.1

- old
+ new

@@ -30,14 +30,16 @@ end alias_method :to_s, :name alias_method :to_sym, :name alias_method :inspect, :name - private - + # Redefines translation scope for the policy + # + # @return[Array<Symbol>] + # def scope @scope ||= %i[evil client errors] << \ - Tram::Policy::Inflector.underscore(model.to_s) + Tram::Policy::Inflector.underscore(model.to_s).to_sym end end # An instance of settings to be checked by the policy param :model