Sha256: 74d741db0a1c6d5e6dbdfce97aac75a3eef7be3d4d78e731182d81068a47816d

Contents?: true

Size: 169 Bytes

Versions: 17

Compression:

Stored size: 169 Bytes

Contents

class Users < ROM::Relation[:sql]
  def by_id(id)
    where(id: id)
  end

  def index
    order(:name)
  end

  def by_name(name)
    index.where(name: name)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rom-rails-0.9.0 spec/dummy/app/relations/users.rb
rom-rails-0.9.0.beta1 spec/dummy/app/relations/users.rb
rom-rails-0.8.0 spec/dummy/app/relations/users.rb
rom-rails-0.7.0 spec/dummy/app/relations/users.rb
rom-rails-0.6.0 spec/dummy/app/relations/users.rb
rom-rails-0.6.0.rc1 spec/dummy/app/relations/users.rb
rom-rails-0.6.0.beta1 spec/dummy/app/relations/users.rb
rom-rails-0.5.0 spec/dummy/app/relations/users.rb
rom-rails-0.5.0.rc1 spec/dummy/app/relations/users.rb
rom-rails-0.5.0.beta1 spec/dummy/app/relations/users.rb
rom-rails-0.4.0 spec/dummy/app/relations/users.rb
rom-rails-0.3.3 spec/dummy/app/relations/users.rb
rom-rails-0.3.2 spec/dummy/app/relations/users.rb
rom-rails-0.3.1 spec/dummy/app/relations/users.rb
rom-rails-0.3.0 spec/dummy/app/relations/users.rb
rom-rails-0.3.0.rc1 spec/dummy/app/relations/users.rb
rom-rails-0.3.0.beta1 spec/dummy/app/relations/users.rb