Class: Rails::Generators::RepresenterGenerator

Inherits:
NamedBase
  • Object
show all
Defined in:
lib/generators/representer_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_representer_fileObject



8
9
10
# File 'lib/generators/representer_generator.rb', line 8

def copy_representer_file
  template "representer.tt", File.join("app/representers", class_path, "#{file_name}_representer.rb")
end