RailsModelConcern

ControllerのActionで利用するModelに対応したModuleを生成します。

Usage

How to use my plugin.

Installation

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

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.