README.md in lite-form-1.0.1 vs README.md in lite-form-1.0.2
- old
+ new
@@ -75,11 +75,14 @@
# `save_and_return!(object)`, and `destroy_and_return!(object)`
create_and_return!(User, attributes)
end
def update_action
- user = User.find(attributes[:id])
- update_and_return!(user, attributes.slice(:id))
+ ActiveRecord::Base.transaction do
+ user = User.find(attributes[:id])
+ update_and_return!(user, attributes.slice(:id))
+ update_and_return!(user.settings, tour: false)
+ end
end
def prepend_signature!
self.signature = "Prefix #{name}"
end