Skip to content
Interactor Rails provides Rails support for the Interactor gem.
Branch: master
Clone or download
Latest commit 8167518 Apr 23, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
gemfiles Clean up older gemfiles for testing on Travis Apr 23, 2018
spec Include Rails 5.2 support Apr 11, 2018
.gitignore Test against multiple Rails versions Aug 17, 2013
.rspec Configure RSpec the cool way Sep 9, 2014
.travis.yml Remove support for EOL Ruby 2.2 Apr 23, 2018 Bump to version 2.2.0 Apr 23, 2018 Update the readme and add contribution guidelines Sep 9, 2014
Gemfile Codeclimate reporter: as 1.0, and with after_success May 16, 2017
LICENSE.txt Correct the license attribution Sep 9, 2014 Re-badge the README Apr 23, 2018
Rakefile Install RSpec, with Coveralls Aug 15, 2013
interactor-rails.gemspec Bump to version 2.2.0 Apr 23, 2018

Interactor Rails

Gem Build Coverage Maintainability

Interactor Rails provides Rails support for the Interactor gem.


Add this line to your application's Gemfile:

gem "interactor-rails", "~> 2.0"

Interactor Rails is compatible with Ruby 2.3, 2.4, or 2.5 on Rails 4.2, 5.0, 5.1, or 5.2.


Interactor Rails ensures that app/interactors is included in your autoload paths, and provides generators for your convenience.

rails generate interactor authenticate_user

adds to app/interactors/authenticate_user.rb:

class AuthenticateUser
  include Interactor

  def call
    # TODO

There is also a generator for organizers.

rails generate interactor:organizer place_order charge_card send_thank_you fulfill_order

adds to app/interactors/place_order.rb:

class PlaceOrder
  include Interactor::Organizer

  organize ChargeCard, SendThankYou, FulfillOrder


Interactor Rails is open source and contributions from the community are encouraged! No contribution is too small.

See Interactor Rails' contribution guidelines for more information.

Thank You!

A very special thank you to Attila Domokos for his fantastic work on LightService. Interactor is inspired heavily by the concepts put to code by Attila.

You can’t perform that action at this time.