lib/finix/resources/verifiable.rb in finix-0.6 vs lib/finix/resources/verifiable.rb in finix-0.7
- old
+ new
@@ -3,10 +3,10 @@
def verify_on(attrs={})
attrs = attrs.attributes if attrs.is_a?(Finix::Resource)
unless self.verifications.nil?
self.verifications.create(attrs)
else
- raise 'Unsupported Method'
+ raise NotImplementedError.new 'not found `verifications` rel'
end
end
end
end