Class: Rails::DecoratorGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_filesObject



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