Class: Rails::Generators::SerializerGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_serializer_fileObject



13
14
15
# File 'lib/generators/rails/serializer_generator.rb', line 13

def create_serializer_file
  template 'serializer.rb.erb', File.join('app/serializers', class_path, "#{file_name}_serializer.rb")
end