pager-api icon indicating copy to clipboard operation
pager-api copied to clipboard

Include to Interactions

Open frostmark opened this issue 8 years ago • 8 comments

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

frostmark avatar Feb 20 '17 11:02 frostmark

Never used that, I may be interesting, thanks for the advice!

kurenn avatar Feb 21 '17 16:02 kurenn

@kurenn I can do it

frostmark avatar Feb 22 '17 05:02 frostmark

@frostmark I would appreciate that!

kurenn avatar Feb 22 '17 21:02 kurenn

@markfrst are you working on this?

kurenn avatar Jun 05 '18 18:06 kurenn

@kurenn no 😟

frostmark avatar Jun 06 '18 04:06 frostmark

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

kurenn avatar Jun 06 '18 17:06 kurenn

okay, maybe i can help later

frostmark avatar Jun 07 '18 05:06 frostmark

I would appreciate that! Thanks!

kurenn avatar Jun 08 '18 21:06 kurenn