Class: HorsePower::AuthorizationGenerator

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

Instance Method Summary collapse

Instance Method Details

#sprintObject



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