lib/rep.rb in rep-1.0.0 vs lib/rep.rb in rep-1.0.1

- old
+ new

@@ -86,10 +86,10 @@ fields.each_with_object({}) do |field, memo| 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}" + message = "There is no method named '#{method_name}' for the class '#{self.class}' for the '#{name}' list of fields" raise NoMethodError.new(message, method_name) end end else raise "There are no json fields under the name: #{name}"