I have a piece of code like:
class Foo < ActiveRecord::Base
has_many :bars, finder_sql: proc{ "Valid SQL" }
end
Now, when I call foo.bar (where foo is an instance of Foo), how can I paginate the results since the row is extracted from finder_sql? Is there a quick and easy way to do this?
source
share