pager-api
pager-api copied to clipboard
Include to Interactions
I use gem 'active_interaction'
and pager-api not included to class Interactions
code example
class Interactions::Users::List < ActiveInteraction::Base
include Contracts::Core
include Contracts::Builtin
array :role, default: nil do
:string
end
Contract None => ActiveRecord::Relation
# @return [ActiveRecord::Relation<User>]
def execute
users = User.all
users = users.where(role: role) if given?(:role)
users
end
end
It would be good else PagerApi be included
Never used that, I may be interesting, thanks for the advice!
@kurenn I can do it
@frostmark I would appreciate that!
@markfrst are you working on this?
@kurenn no 😟
Oh well, I can work on it, but it may take a while since I have not worked with ActiveInteracion
and I want to make some refactors on the current version
okay, maybe i can help later
I would appreciate that! Thanks!