Sha256: b9465ada39b3f50c044c1b436cd6dc10b0e34b2c33afba798fe18aac2d2a9c08

Contents?: true

Size: 176 Bytes

Versions: 6

Compression:

Stored size: 176 Bytes

Contents

class Tasks < ROM::Relation[:sql]
  gateway :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-2.4.0 spec/dummy/app/relations/tasks.rb
rom-rails-2.3.1 spec/dummy/app/relations/tasks.rb
rom-rails-2.3.0 spec/dummy/app/relations/tasks.rb
rom-rails-2.2.0 spec/dummy/app/relations/tasks.rb
rom-rails-2.0.0 spec/dummy/app/relations/tasks.rb
rom-rails-1.2.0 spec/dummy/app/relations/tasks.rb