Class: Rails::Generators::SerializerGenerator
- Inherits:
-
NamedBase
- Object
- NamedBase
- Rails::Generators::SerializerGenerator
- Defined in:
- lib/generators/rails/serializer_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_serializer_file ⇒ Object
11 12 13 |
# File 'lib/generators/rails/serializer_generator.rb', line 11 def create_serializer_file template 'serializer.rb.erb', File.join('app/serializers', class_path, "#{file_name}_serializer.rb") end |