Class: Haml::Generators::OauthProviderGenerator

Inherits:
Erb::Generators::Base
  • Object
show all
Defined in:
lib/generators/haml/oauth_provider_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_view_filesObject



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/generators/haml/oauth_provider_generator.rb', line 10

def copy_view_files
  template '_form.html.haml',              File.join('app/views', class_path, 'oauth_clients', '_form.html.haml')
  template 'new.html.haml',                File.join('app/views', class_path, 'oauth_clients', 'new.html.haml')
  template 'index.html.haml',              File.join('app/views', class_path, 'oauth_clients', 'index.html.haml')
  template 'show.html.haml',               File.join('app/views', class_path, 'oauth_clients', 'show.html.haml')
  template 'edit.html.haml',               File.join('app/views', class_path, 'oauth_clients', 'edit.html.haml')
  template 'authorize.html.haml',          File.join('app/views', class_path, file_name, 'authorize.html.haml')
  template 'oauth2_authorize.html.haml',   File.join('app/views', class_path, file_name, 'oauth2_authorize.html.haml')
  template 'authorize_success.html.haml',  File.join('app/views', class_path, file_name, 'authorize_success.html.haml')
  template 'authorize_failure.html.haml',  File.join('app/views', class_path, file_name, 'authorize_failure.html.haml')
end