Class: Locastyle::Generators::InstallGenerator

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

Constant Summary collapse

SHARED_PATH =
File.expand_path("app/views/layouts/shared")
TEMPLATE_PATH =
File.expand_path("app/views/layouts/application.html.erb")

Instance Method Summary collapse

Instance Method Details

#copy_filesObject



11
12
13
# File 'lib/generators/locastyle/install_generator.rb', line 11

def copy_files
  directory "shared", SHARED_PATH
end

#create_layoutObject



15
16
17
# File 'lib/generators/locastyle/install_generator.rb', line 15

def create_layout
  template "application.html.erb", TEMPLATE_PATH
end