ControllerのActionに対応したInteractorを生成します。
rails g rails_interactor controller_name#index
This will create:
- app/interactors/controller_names/index_interactor.rb
Add this line to your application's Gemfile:
gem 'rails_interactor', git: 'https://github.com/sogasusumu/rails_interactor.git'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rails_interactor
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.