Class: ExtjsScaffold::Generators::Base
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- ExtjsScaffold::Generators::Base
show all
- Defined in:
- lib/generators/extjs_scaffold.rb
Class Method Summary
collapse
Class Method Details
.rails_app_name ⇒ Object
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_root ⇒ Object
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
|