Class: AppleAuth::Generators::AppleAuthControllerGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/apple_auth/apple_auth_controller/apple_auth_controller_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_apple_auth_controller_fileObject



9
10
11
12
13
# File 'lib/generators/apple_auth/apple_auth_controller/apple_auth_controller_generator.rb', line 9

def copy_apple_auth_controller_file
  @scope_prefix = scope.blank? ? '' : scope.camelize
  template 'apple_auth_controller.rb',
           "app/controllers/#{scope}apple_auth_controller.rb"
end