Class: Devise::Views::FoundationLayoutGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Devise::Views::FoundationLayoutGenerator
- Defined in:
- lib/generators/devise/views/foundation_layout/foundation_layout_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_layout ⇒ Object
10 11 12 |
# File 'lib/generators/devise/views/foundation_layout/foundation_layout_generator.rb', line 10 def copy_layout template "layouts/devise.html.erb", "app/views/layouts/devise.html.erb" end |
#show_application_controller_note ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/generators/devise/views/foundation_layout/foundation_layout_generator.rb', line 14 def show_application_controller_note say "\nAdd to ApplicationController:\n", :yellow say <<~RUBY, :green layout :layout_for_controller private def layout_for_controller devise_controller? ? "devise" : "application" end RUBY say "\nIn application.css (Sprockets, no Sass required):\n", :yellow say <<~CSS, :green *= require devise_foundation_views *= require devise_foundation_layout CSS say "\nEnsure Foundation 6 CSS is loaded in the devise layout.\n", :yellow end |