Class: Rails::Generators::RepresenterGenerator
- Inherits:
-
NamedBase
- Object
- NamedBase
- Rails::Generators::RepresenterGenerator
- Defined in:
- lib/generators/representer_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_representer_file ⇒ Object
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 |