Class: Rails::Generators::ResourceGenerator
- Inherits:
-
ModelGenerator
- Object
- NamedBase
- ModelGenerator
- Rails::Generators::ResourceGenerator
- Includes:
- ResourceHelpers
- Defined in:
- railties/lib/rails/generators/rails/resource/resource_generator.rb
Overview
:nodoc:
Direct Known Subclasses
Constant Summary
Constants included from ModelHelpers
ModelHelpers::INFLECTION_IMPOSSIBLE_ERROR_MESSAGE, ModelHelpers::IRREGULAR_MODEL_NAME_WARN_MESSAGE, ModelHelpers::PLURAL_MODEL_NAME_WARN_MESSAGE
Class Method Summary collapse
Methods included from ResourceHelpers
Methods included from ModelHelpers
Class Method Details
.desc(description = nil) ⇒ Object
21 22 23 |
# File 'railties/lib/rails/generators/rails/resource/resource_generator.rb', line 21 def desc(description = nil) ERB.new(File.read(usage_path)).result(binding) end |