I have a model that is paginated, and in some cases I want to add an extra column to the query and retrieve that same column in my paginated results. For example:
users = User.select('users.*, users.value is NULL as val').page(2)
If I do users.first['val'] then it gives me nothing. But if I remove the pagination users = User.select('users.*, users.value is NULL as val') then users.first['val'] will give me what I want. How can I do this with Kaminari?