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


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