Sha256: d8bec93de6c3655cb0ed39899cc4ff4db90c2f089b3620b2174f7d7fbba2602e

Contents?: true

Size: 216 Bytes

Versions: 6

Compression:

Stored size: 216 Bytes

Contents

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

  # set Timestamp plugin
  # use :timestamps
  # timestamp :updated_at
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rom-rails-2.4.0 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-2.3.1 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-2.3.0 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-2.2.0 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-2.0.0 lib/generators/rom/commands/templates/update.rb.erb
rom-rails-1.2.0 lib/generators/rom/commands/templates/update.rb.erb