ControllerのActionで利用するModelに対応したModuleを生成します。
How to use my plugin.
rails g rails_concern controller_name#index-model_one
This will create:
- app/models/controller_names/index/model_one.rb
gem 'rails_model_concern', git: 'https://github.com/sogasusumu/rails_model_concern.git'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rails_model_concern
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.