Class: LayoutOptions::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#application_controller_injectionObject

:nodoc:



7
8
9
10
11
# File 'lib/generators/layout_options/install_generator.rb', line 7

def application_controller_injection # :nodoc:
  inject_into_class 'app/controllers/application_controller.rb', ApplicationController do
   "  include LayoutOptions\n"
  end
end

#copy_initializerObject

:nodoc



13
14
15
# File 'lib/generators/layout_options/install_generator.rb', line 13

def copy_initializer # :nodoc
  copy_file 'layout_options.rb', 'config/initializers/layout_options.rb'
end