lib/finix/resources/verifiable.rb in finix-0.7 vs lib/finix/resources/verifiable.rb in finix-0.8

- old
+ new

@@ -1,12 +1,9 @@ module Finix module Verifiable - def verify_on(attrs={}) + def verify(attrs={}) attrs = attrs.attributes if attrs.is_a?(Finix::Resource) - unless self.verifications.nil? - self.verifications.create(attrs) - else - raise NotImplementedError.new 'not found `verifications` rel' - end + return self.verifications.create(attrs) unless self.verifications.nil? + raise NotImplementedError.new 'not found `verifications` rel' end end end