Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include to Interactions #10

Open
frostmark opened this issue Feb 20, 2017 · 8 comments
Open

Include to Interactions #10

frostmark opened this issue Feb 20, 2017 · 8 comments

Comments

@frostmark
Copy link

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

@kurenn
Copy link
Member

kurenn commented Feb 21, 2017

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

@frostmark
Copy link
Author

frostmark commented Feb 22, 2017

@kurenn I can do it

@kurenn
Copy link
Member

kurenn commented Feb 22, 2017

@frostmark I would appreciate that!

@kurenn
Copy link
Member

kurenn commented Jun 5, 2018

@markfrst are you working on this?

@frostmark
Copy link
Author

@kurenn no 😟

@kurenn
Copy link
Member

kurenn commented Jun 6, 2018

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

@frostmark
Copy link
Author

okay, maybe i can help later

@kurenn
Copy link
Member

kurenn commented Jun 8, 2018

I would appreciate that! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants