Class: HorsePower::SerializerGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- HorsePower::SerializerGenerator
- Defined in:
- lib/generators/horse_power/serializer/serializer_generator.rb
Instance Method Summary collapse
Instance Method Details
#sprint ⇒ Object
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 |