Class: Refinery::EngineGenerator

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

Instance Method Summary collapse

Methods included from ExtensionGeneration

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

Instance Method Details

#backend_routeObject



24
25
26
27
28
29
30
# File 'lib/generators/refinery/engine/engine_generator.rb', line 24

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



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

def generate
  default_generate!
end

#skip_frontend?Boolean

Returns:

  • (Boolean)


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

def skip_frontend?
  options[:skip_frontend]
end