class Rails::Generators::DecoratorGenerator
Public Instance Methods
create_decorator()
click to toggle source
# File lib/generators/rails/decorator/decorator_generator.rb, line 7 def create_decorator template 'decorator.rb', File.join('app/decorators', class_path, "#{file_name}_decorator.rb") end