Class: Mutils::SerializerGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/mutils/serializer_generator.rb

Overview

Class SerializerGenerator

Instance Method Summary collapse

Instance Method Details

#create_serializer_fileObject



11
12
13
# File 'lib/generators/mutils/serializer_generator.rb', line 11

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