Class: Refinery::EngineGenerator
Instance Method Summary
collapse
#attributes_for_translation_table, #extension_authors, #extension_class_name, #extension_name, #extension_plural_class_name, #extension_plural_name, #image_attributes, included, #localized?, #localized_attributes, #namespacing, #resource_attributes, #string_attributes
Instance Method Details
#backend_route ⇒ Object
25
26
27
28
29
30
31
|
# File 'lib/generators/refinery/engine/engine_generator.rb', line 25
def backend_route
@backend_route ||= if namespacing.underscore != plural_name
%Q{"#\{Refinery::Core.backend_route\}/#{namespacing.underscore}"}
else
"Refinery::Core.backend_route"
end
end
|
#generate ⇒ Object
21
22
23
|
# File 'lib/generators/refinery/engine/engine_generator.rb', line 21
def generate
default_generate!
end
|
#skip_frontend? ⇒ Boolean
17
18
19
|
# File 'lib/generators/refinery/engine/engine_generator.rb', line 17
def skip_frontend?
options[:skip_frontend]
end
|