Class: ConcernGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/rails/concern/concern_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_concernObject



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