Class: ExtjsScaffold::Generators::Base

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/extjs_scaffold.rb

Direct Known Subclasses

ScaffoldControllerGenerator

Class Method Summary collapse

Class Method Details

.rails_app_nameObject



10
11
12
# File 'lib/generators/extjs_scaffold.rb', line 10

def self.rails_app_name
  Rails.root.to_s.split('/').last.titlecase.split.join
end

.source_rootObject



6
7
8
# File 'lib/generators/extjs_scaffold.rb', line 6

def self.source_root
  @_extjs_scaffold_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'extjs_scaffold', generator_name, 'templates'))
end