app/models/update_request/request.rb in update_request-0.0.1 vs app/models/update_request/request.rb in update_request-0.0.2
- old
+ new
@@ -13,10 +13,12 @@
after_initialize :reinsert_files_into_schema
serialize :update_schema
def apply!(approver = nil)
- raise ActiveRecord::RecordInvalid(updateable, approver) unless apply
+ applied = apply(approver)
+ raise ActiveRecord::RecordInvalid.new(updateable) unless applied
+ applied
end
def apply(approver = nil)
applied = updateable.update_attributes(
reinclude_modules_in_attachments(update_schema)