Sha256: e99d4f5d98131376cad2d750c942af1cbb8adc8f41c74a0daea0cda8c55aebd1

Contents?: true

Size: 161 Bytes

Versions: 6

Compression:

Stored size: 161 Bytes

Contents

class Tasks < ROM::Relation[:sql]
  schema(:tasks, infer: true)

  def by_id(id)
    where(id: id)
  end

  def all
    select(:id, :title).order(:id)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rom-rails-1.1.1 spec/dummy/app/relations/tasks.rb
rom-rails-1.1.0 spec/dummy/app/relations/tasks.rb
rom-rails-1.0.1 spec/dummy/app/relations/tasks.rb
rom-rails-1.0.0 spec/dummy/app/relations/tasks.rb
rom-rails-1.0.0.rc1 spec/dummy/app/relations/tasks.rb
rom-rails-1.0.0.beta1 spec/dummy/app/relations/tasks.rb