lib/rep.rb in rep-0.9.2 vs lib/rep.rb in rep-1.0.0
- old
+ new
@@ -87,10 +87,10 @@
field_name, method_name = field.is_a?(Hash) ? field.to_a.first : [field, field]
if self.respond_to?(method_name)
memo[field_name] = send(method_name)
else
message = "There is no method named '#{method_name}' for the class '#{self.class}' for the '#{name}' list of fields : #{e.message}"
- raise NoMethodError.new(message, method_name, e.args)
+ raise NoMethodError.new(message, method_name)
end
end
else
raise "There are no json fields under the name: #{name}"
end