dependabot[bot] on bundler
dependabot[bot] on bundler
Bump nokogiri from 1.11.4 to 1.… (compare)
solnic on v4.0.0.alpha1
solnic on fix-specs-in-compat-mode
countries_repositories.aggregate(region: :region)
gets the first two layers but not below that
people.select(:name).where { ltree_tags.match_any(['Bottom', 'Bottom.Cities.*']) }
:)
search_params.horsepower_ranges_map
returns array of hashes like: [ { horsepower: 100..200 }, { horsepower: 500..600} ]
rom-roda
looks outdated. But there isn't much sense to use this plugin. You can use rom
and roda
together without any additional libraries. For example: https://github.com/v-kolesnikov/elias/tree/feature/api_v1
I guess the simple example is:
relation:
def test
select { %i(car_model_id score horsepower) }.distinct(:car_model_id).order(:car_model_id, :score)
end
[1] pry(#<OffersRepository>)> relations[:offers].test
=> #<OffersRelation name=ROM::Relation::Name(offers) dataset=#<Sequel::Postgres::Dataset: "SELECT DISTINCT ON (\"car_model_id\") \"offers\".\"car_model_id\", \"offers\".\"score\", \"offers\".\"horsepower\" FROM \"offers\" ORDER BY \"car_model_id\", \"score\"">>
[2] pry(#<OffersRepository>)> relations[:offers].test.order(:horsepower)
=> #<OffersRelation name=ROM::Relation::Name(offers) dataset=#<Sequel::Postgres::Dataset: "SELECT DISTINCT ON (\"car_model_id\") \"offers\".\"car_model_id\", \"offers\".\"score\", \"offers\".\"horsepower\" FROM \"offers\" ORDER BY \"horsepower\"">>