Class: HorsePower::AuthorizationGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- HorsePower::AuthorizationGenerator
- Defined in:
- lib/generators/horse_power/authorization/authorization_generator.rb
Instance Method Summary collapse
Instance Method Details
#sprint ⇒ Object
8 9 10 11 |
# File 'lib/generators/horse_power/authorization/authorization_generator.rb', line 8 def sprint template "auth_file.rb.erb", "lib/authorization/v#{api_version}/#{HorsePower.get_singular(resource_name)}.rb" #require_authfile end |