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