lib/ensurance.rb in ensurance-0.1.5 vs lib/ensurance.rb in ensurance-0.1.6

- old
+ new

@@ -43,10 +43,10 @@ found end def ensure!(thing = nil) result = self.ensure(thing) - raise ::ActiveRecord::RecordNotFound unless result + raise ::ActiveRecord::RecordNotFound.new("#{self}[#{thing ? thing : 'nil'}]") unless result result end end end