Replies: 2 comments 4 replies
-
Do you have default dataset/filters/limitations in the model? Or maybe spec helpers enables them? |
Beta Was this translation helpful? Give feedback.
4 replies
-
The issue is with Datagrid gem. I wasn't able to find where it happens, but this results in the error: # all_sites_grid.rb
class AllSitesGrid < BaseGrid
scope do
Site
end
end
# sites_controller.rb
grid = AllSitesGrid.new do
Site.dataset.paginate(1, 25)
end While this works just fine: # all_sites_grid.rb
class AllSitesGrid < BaseGrid
scope do
[]
end
end
# sites_controller.rb
grid = AllSitesGrid.new do
Site.dataset.paginate(1, 25).to_a
end This is a simplified representation of what was going in my case. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey! I'm a bit lost on this.
This is what I do:
This is what I get:
These are the extensions I have loaded:
What might cause this?
Beta Was this translation helpful? Give feedback.
All reactions