Sha256: d90a0de5977d02d1a964b9956b0d3e4f75fa9c168a5e1fdaabf9194ee26d91d4

Contents?: true

Size: 273 Bytes

Versions: 6

Compression:

Stored size: 273 Bytes

Contents

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

<% if adapter.to_sym == :sql -%>
  # set Timestamp plugin
  # use :timestamps
  # timestamp :created_at, :updated_at
<% end -%>
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rom-rails-1.1.1 lib/generators/rom/commands/templates/create.rb.erb
rom-rails-1.1.0 lib/generators/rom/commands/templates/create.rb.erb
rom-rails-1.0.1 lib/generators/rom/commands/templates/create.rb.erb
rom-rails-1.0.0 lib/generators/rom/commands/templates/create.rb.erb
rom-rails-1.0.0.rc1 lib/generators/rom/commands/templates/create.rb.erb
rom-rails-1.0.0.beta1 lib/generators/rom/commands/templates/create.rb.erb