lib/tram/policy.rb in tram-policy-1.0.1 vs lib/tram/policy.rb in tram-policy-2.0.0
- old
+ new
@@ -38,10 +38,10 @@
# The collection of validation errors
#
# @return [Tram::Policy::Errors]
#
def errors
- @errors ||= Errors.new(self)
+ @errors ||= Errors.new(scope: scope)
end
# The array of error items for lazy translation
#
# @return [Array<Array>]