Sha256: fba0dcc338139d977acfa778db6b616ac3e209c8f9f52ea073d890b1c86c2dfc

Contents?: true

Size: 178 Bytes

Versions: 2

Compression:

Stored size: 178 Bytes

Contents

class UpdateUserForm < UserForm
  commands users: :update

  attributes.timestamps(:updated_at)

  def commit!
    users.try { users.update.by_id(id).set(attributes) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rom-rails-0.3.0 spec/dummy/app/forms/update_user_form.rb
rom-rails-0.3.0.rc1 spec/dummy/app/forms/update_user_form.rb