Sha256: c2458d69c61dd28ee92bdea89b84c5db7a89283842aebddb20ff0ad3f0554ef6

Contents?: true

Size: 148 Bytes

Versions: 2

Compression:

Stored size: 148 Bytes

Contents

ROM.relation(:<%= class_name.underscore %>) do
  # 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.2.1 lib/generators/rom/relation/templates/relation.rb.erb
rom-rails-0.2.0 lib/generators/rom/relation/templates/relation.rb.erb