Class: Administrate::Generators::Views::LayoutGenerator

Inherits:
ViewGenerator
  • Object
show all
Defined in:
lib/generators/administrate/views/layout_generator.rb

Instance Method Summary collapse

Methods inherited from ViewGenerator

template_source_path

Methods included from Administrate::GeneratorHelpers

#call_generator

Instance Method Details

#copy_templateObject



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/generators/administrate/views/layout_generator.rb', line 9

def copy_template
  copy_file(
    "../../layouts/administrate/application.html.erb",
    "app/views/layouts/#{namespace}/application.html.erb"
  )

  call_generator("administrate:views:navigation")
  copy_resource_template("_stylesheet")
  copy_resource_template("_javascript")
  copy_resource_template("_flashes")
  copy_resource_template("_icons")
end