Class: SpRailsSaml::ViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/sp-rails-saml/views_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_saml_setting_viewObject



15
16
17
18
19
20
# File 'lib/generators/sp-rails-saml/views_generator.rb', line 15

def create_saml_setting_view
  return unless options['settings']

  copy_file 'views/saml/edit.html.erb', 'app/views/saml/saml_settings/edit.html.erb'
  copy_file 'views/saml/show.html.erb', 'app/views/saml/saml_settings/show.html.erb'
end

#create_session_viewObject



11
12
13
# File 'lib/generators/sp-rails-saml/views_generator.rb', line 11

def create_session_view
  copy_file 'views/sessions/new.html.erb', 'app/views/saml/sessions/new.html.erb'
end