Class: ConcernGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- ConcernGenerator
- Defined in:
- lib/generators/rails/concern/concern_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_concern ⇒ Object
4 5 6 |
# File 'lib/generators/rails/concern/concern_generator.rb', line 4 def create_concern template("concern.rb", File.join("app/models/concerns/#{class_name.underscore}.rb")) end |