Class: Rails::DecoratorGenerator
- Inherits:
-
Generators::NamedBase
- Object
- Generators::NamedBase
- Rails::DecoratorGenerator
- Defined in:
- lib/generators/rails/decorator_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_files ⇒ Object
9 10 11 12 |
# File 'lib/generators/rails/decorator_generator.rb', line 9 def copy_files path = File.join("app", "decorators", class_path, "#{file_name}_decorator.rb") template("decorator.rb.tt", path) end |