Sha256: 6f8a5a104e008496853b7ce113d845018d4186086e5ec9bcc0a57f7f4427673d

Contents?: true

Size: 194 Bytes

Versions: 4

Compression:

Stored size: 194 Bytes

Contents

class <%= class_name %>Relation < ROM::Relation<%= "[:#{adapter}]" %>
  dataset :<%= dataset %>

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rom-rails-0.3.1 lib/generators/rom/relation/templates/relation.rb.erb
rom-rails-0.3.0 lib/generators/rom/relation/templates/relation.rb.erb
rom-rails-0.3.0.rc1 lib/generators/rom/relation/templates/relation.rb.erb
rom-rails-0.3.0.beta1 lib/generators/rom/relation/templates/relation.rb.erb