|  | @@ -1,5 +1,8 @@
 | 
											
												
													
														|  | 
 |  | +current_path = File.expand_path(File.dirname(__FILE__))
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  # Add Devise to Gemfile
 |  |  # Add Devise to Gemfile
 | 
											
												
													
														|  |  gem "devise", "~> 4.2.1"
 |  |  gem "devise", "~> 4.2.1"
 | 
											
												
													
														|  | 
 |  | +gem "bootstrap-sass", "~> 3.3.6"
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  # Install Devise
 |  |  # Install Devise
 | 
											
												
													
														|  |  rails_command "generate devise:install"
 |  |  rails_command "generate devise:install"
 | 
											
										
											
												
													
														|  | @@ -8,8 +11,8 @@ rails_command "generate devise:install"
 | 
											
												
													
														|  |  environment "config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }",
 |  |  environment "config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }",
 | 
											
												
													
														|  |              env: 'development'
 |  |              env: 'development'
 | 
											
												
													
														|  |  route "root to: 'home#index'"
 |  |  route "root to: 'home#index'"
 | 
											
												
													
														|  | -# TODO: Install notices
 |  | 
 | 
											
												
													
														|  | -rails_command "generate devise:views"
 |  | 
 | 
											
												
													
														|  | 
 |  | +# Devise notices are installed via Bootstrap
 | 
											
												
													
														|  | 
 |  | +rails_command "generate devise:views User"
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  # Create Devise User
 |  |  # Create Devise User
 | 
											
												
													
														|  |  generate :devise, "User",
 |  |  generate :devise, "User",
 | 
											
										
											
												
													
														|  | @@ -17,6 +20,20 @@ generate :devise, "User",
 | 
											
												
													
														|  |           "last_name",
 |  |           "last_name",
 | 
											
												
													
														|  |           "announcements_last_read_at:datetime"
 |  |           "announcements_last_read_at:datetime"
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +# Rename Application SCSS
 | 
											
												
													
														|  | 
 |  | +run "mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scss"
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +# Insert Bootstrap Styling
 | 
											
												
													
														|  | 
 |  | +insert_into_file(
 | 
											
												
													
														|  | 
 |  | +  "app/assets/stylesheets/application.scss",
 | 
											
												
													
														|  | 
 |  | +  "@import 'bootstrap-sprockets';\n@import 'bootstrap'\n",
 | 
											
												
													
														|  | 
 |  | +  before: "/*"
 | 
											
												
													
														|  | 
 |  | +)
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +# Import Templates
 | 
											
												
													
														|  | 
 |  | +run "cp #{current_path}/views/layouts/application.html.erb app/views/layouts/application.html.erb"
 | 
											
												
													
														|  | 
 |  | +run "cp -R #{current_path}/views/shared app/views/shared"
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  # Migrate
 |  |  # Migrate
 | 
											
												
													
														|  |  rails_command "db:migrate"
 |  |  rails_command "db:migrate"
 | 
											
												
													
														|  |  
 |  |  
 |