Class: RailsMvpAuthentication::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/rails_mvp_authentication/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#performObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/generators/rails_mvp_authentication/install_generator.rb', line 8

def perform
  create_users_table
  modify_users_table
  create_user_model
  create_active_sessions_table
  modify_active_sessions_table
  create_active_session_model
  add_bcrypt
  add_routes
  create_current_model
  create_users_controller
  create_user_views
  create_active_sessions_controller
  create_confirmations_controller
  create_confirmation_views
  ceate_user_mailer
  ceate_user_mailer_views
  configure_hosts
  create_authentication_concern
  modify_application_controller
  create_sessions_controller
  create_session_views
  create_passwords_controller
  create_password_views
  if using_default_test_suite
    create_tests
    modify_test_helper
  end
  add_links
  print_instructions
end