Sha256: a230964eaec535fcff06302aef19378ccf26e50e5c1cdef3a84a81ab219d3d08

Contents?: true

Size: 250 Bytes

Versions: 15

Compression:

Stored size: 250 Bytes

Contents

module <%= model_name %>Commands
  class Update < ROM::Commands::Update<%= "[:#{adapter}]" %>
    relation :<%= relation %>
    register_as :update
    result :one

    # define a validator to use
    # validator <%= model_name %>Validator
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rom-rails-0.8.0 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-0.7.0 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-0.6.0 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-0.6.0.rc1 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-0.6.0.beta1 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-0.5.0 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-0.5.0.rc1 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-0.5.0.beta1 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-0.4.0 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-0.3.3 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-0.3.2 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-0.3.1 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-0.3.0 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-0.3.0.rc1 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-0.3.0.beta1 lib/generators/rom/commands/templates/update.rb.erb