collectiveidea / interactor-rails

Interactor Rails provides Rails support for the Interactor gem.
MIT License
437 stars 46 forks source link

I think this needs updating to be compatible with Rails 6 #23

Closed HenryHaller closed 5 years ago

HenryHaller commented 5 years ago

I'm trying to upgrade an app to rails 6 and I get this:

 bundle update rails
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies..........
Bundler could not find compatible versions for gem "rails":
  In Gemfile:
    rails (= 6.0.0.beta1)

    interactor-rails (~> 2.0) was resolved to 2.2.0, which depends on
      rails (>= 4.2, < 5.3)
ianjhuang commented 5 years ago

@HenryHaller did you finding a way around this?

galileoguzman commented 5 years ago

@ianjhuang @HenryHaller

Hey guys!!!

I am using Rails 6 in a project and I wanted to use interactor-rails but I got the same error though I found a way to work with it.

I use the original gem

gem "interactor", "~> 3.0"

Then in config/application.rb I required the gem

require "interactor"

and works perfectly to me

fauxparse commented 5 years ago

See #25

gaffneyc commented 5 years ago

Duplicate #25