Class: Refinery::EngineGenerator

Inherits:
Generators::NamedBase show all
Includes:
ExtensionGeneration
Defined in:
core/lib/generators/refinery/engine/engine_generator.rb

Instance Method Summary collapse

Methods included from ExtensionGeneration

#attributes_for_translation_table, #extension_authors, #extension_class_name, #extension_name, #extension_plural_class_name, #extension_plural_name, #image_attributes, included, #localized?, #localized_attributes, #localized_table_name, #namespacing, #resource_attributes, #string_attributes

Instance Method Details

#backend_routeObject



25
26
27
28
29
30
31
# File 'core/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

#generateObject



21
22
23
# File 'core/lib/generators/refinery/engine/engine_generator.rb', line 21

def generate
  default_generate!
end

#skip_frontend?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'core/lib/generators/refinery/engine/engine_generator.rb', line 17

def skip_frontend?
  options[:skip_frontend]
end