Class: Administrate::Generators::ViewsGenerator

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

Instance Method Summary collapse

Methods inherited from ViewGenerator

template_source_path

Methods included from Administrate::GeneratorHelpers

#call_generator

Instance Method Details

#copy_templatesObject



6
7
8
9
10
11
12
# File 'lib/generators/administrate/views/views_generator.rb', line 6

def copy_templates
  view = "administrate:views:"
  call_generator("#{view}index", resource_path, "--namespace", namespace)
  call_generator("#{view}show", resource_path, "--namespace", namespace)
  call_generator("#{view}new", resource_path, "--namespace", namespace)
  call_generator("#{view}edit", resource_path, "--namespace", namespace)
end