Sha256: b48fec33690bb5bc37f6f2962a1a01fa5c24233df95006f8aba7f46269989158

Contents?: true

Size: 201 Bytes

Versions: 14

Compression:

Stored size: 201 Bytes

Contents

class NewUserForm < UserForm
  commands users: :create

  mappings users: :entity

  input do
    timestamps(:created_at)
  end

  def commit!
    users.try { users.create.call(attributes) }
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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