Hi, asked the same in the chat room. New to Hanami and not sure about the best place to ask questions like this…
Got a problem with using repositories and the code below returns
undefined method `all’ for ROM::Relation::Composite
It seems query methods are not chainable?
class UsersRepository < Hanami::Repository
def yesterday_and_older
users.where{ created_at < (DateTime.now() - 1.0) }.all
end
end
Could someone shed a light on it?