Class: ExtJS::API

Inherits:
Xmvc::Vendor
  • Object
show all
Defined in:
lib/extjs.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



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

def self.source_root
  File.dirname(__FILE__)
end

Instance Method Details

#installObject



11
12
13
# File 'lib/extjs.rb', line 11

def install
  
end

#secretary(type = :js) ⇒ Object



16
17
18
19
20
21
22
23
24
# File 'lib/extjs.rb', line 16

def secretary(type = :js)
  case type
    when :js 
      Sprockets::Secretary.new({
        :root => destination_root,
        :source_files => (config["host"]) ? config["javascripts"].map {|file| Xmvc.build_cachefly_url(config['host'], config['name'], config['version'], file)} : config["javascripts"]
      })
  end
end