Sha256: 56bcfcd9627f6fdc2334f2ce5e8365c7f548f94c3904f5181a6764b584107948

Contents?: true

Size: 318 Bytes

Versions: 11

Compression:

Stored size: 318 Bytes

Contents

class <%= class_name %>Relation < ROM::Relation<%= "[:#{adapter}]" %>
<% if gateway -%>
  gateway :<%= gateway %>
<% else -%>
  # gateway :default
<% end -%>

  dataset :<%= dataset %>

  register_as :<%= register_as %>

  # define your methods here ie:
  #
  # def all
  #   select(:id, :name).order(:id)
  # end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rom-rails-0.9.0 lib/generators/rom/relation/templates/relation.rb.erb
rom-rails-0.9.0.beta1 lib/generators/rom/relation/templates/relation.rb.erb
rom-rails-0.8.0 lib/generators/rom/relation/templates/relation.rb.erb
rom-rails-0.7.0 lib/generators/rom/relation/templates/relation.rb.erb
rom-rails-0.6.0 lib/generators/rom/relation/templates/relation.rb.erb
rom-rails-0.6.0.rc1 lib/generators/rom/relation/templates/relation.rb.erb
rom-rails-0.6.0.beta1 lib/generators/rom/relation/templates/relation.rb.erb
rom-rails-0.5.0 lib/generators/rom/relation/templates/relation.rb.erb
rom-rails-0.5.0.rc1 lib/generators/rom/relation/templates/relation.rb.erb
rom-rails-0.5.0.beta1 lib/generators/rom/relation/templates/relation.rb.erb
rom-rails-0.4.0 lib/generators/rom/relation/templates/relation.rb.erb