Sha256: 307eb42af8fe33764ed123cae94b1a808ec66c0aba26ebd61fc2c75e3d16be7f
Contents?: true
Size: 330 Bytes
Versions: 2
Compression:
Stored size: 330 Bytes
Contents
class <%= class_name %>Relation < ROM::Relation<%= "[:#{adapter}]" %> <% if repository -%> repository :<%= repository %> <% else -%> # repository :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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rom-rails-0.3.3 | lib/generators/rom/relation/templates/relation.rb.erb |
rom-rails-0.3.2 | lib/generators/rom/relation/templates/relation.rb.erb |