Class: HorsePower::SerializerGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/horse_power/serializer/serializer_generator.rb

Instance Method Summary collapse

Instance Method Details

#sprintObject



8
9
10
# File 'lib/generators/horse_power/serializer/serializer_generator.rb', line 8

def sprint
	template "serializer.rb.erb", "app/serializers/v#{api_version}/#{HorsePower.get_singular(resource_name)}_serializer.rb"
end