Class: Administrate::Generators::Views::LayoutGenerator
- Inherits:
-
ViewGenerator
- Object
- Rails::Generators::Base
- ViewGenerator
- Administrate::Generators::Views::LayoutGenerator
- Defined in:
- lib/generators/administrate/views/layout_generator.rb
Instance Method Summary collapse
Methods inherited from ViewGenerator
Methods included from Administrate::GeneratorHelpers
Instance Method Details
#copy_template ⇒ Object
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 |