lib/approval/models/approval/item.rb in approval-0.2.0 vs lib/approval/models/approval/item.rb in approval-0.2.2
- old
+ new
@@ -49,11 +49,11 @@
def ensure_resource_be_valid
return if resource_model.nil? || destroy_event?
record = resource_model.new(params || {})
unless record.valid?
- record.errors.full_messages.each do |_message|
- errors.add(:base, "message")
+ record.errors.full_messages.each do |message|
+ errors.add(:base, message)
end
end
end
end
end