Sha256: 0d7dfa08a69d724698f4638b36d02b357a2e9c9db37db892d94d4aa5885d0624

Contents?: true

Size: 187 Bytes

Versions: 12

Compression:

Stored size: 187 Bytes

Contents

class UpdateUserForm < UserForm
  commands users: :update

  input do
    timestamps(:updated_at)
  end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rom-rails-0.9.0 spec/dummy/app/forms/update_user_form.rb
rom-rails-0.9.0.beta1 spec/dummy/app/forms/update_user_form.rb
rom-rails-0.8.0 spec/dummy/app/forms/update_user_form.rb
rom-rails-0.7.0 spec/dummy/app/forms/update_user_form.rb
rom-rails-0.6.0 spec/dummy/app/forms/update_user_form.rb
rom-rails-0.6.0.rc1 spec/dummy/app/forms/update_user_form.rb
rom-rails-0.6.0.beta1 spec/dummy/app/forms/update_user_form.rb
rom-rails-0.5.0 spec/dummy/app/forms/update_user_form.rb
rom-rails-0.5.0.rc1 spec/dummy/app/forms/update_user_form.rb
rom-rails-0.5.0.beta1 spec/dummy/app/forms/update_user_form.rb
rom-rails-0.4.0 spec/dummy/app/forms/update_user_form.rb
rom-rails-0.3.3 spec/dummy/app/forms/update_user_form.rb