Sha256: 09c9c6144b22e7b03f680f7e6e737a36870dc2519896b24e77407157bc285755

Contents?: true

Size: 186 Bytes

Versions: 2

Compression:

Stored size: 186 Bytes

Contents

class UpdateUserForm < UserForm
  commands users: :update

  input do
    timestamps(:updated_at)
  end

  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.2 spec/dummy/app/forms/update_user_form.rb
rom-rails-0.3.1 spec/dummy/app/forms/update_user_form.rb