Class: HqueryPatientApi::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/hquery/generator.rb

Constant Summary collapse

@@ctx =
nil

Class Method Summary collapse

Class Method Details

.ctxObject



5
6
7
8
9
10
11
# File 'lib/hquery/generator.rb', line 5

def self.ctx 
  unless @@ctx
    @@ctx = Sprockets::Environment.new(File.expand_path("../../../", __FILE__))
    @@ctx.append_path "app/assets/javascripts"
  end
  @@ctx
end

.patient_api_javascriptObject



13
14
15
# File 'lib/hquery/generator.rb', line 13

def self.patient_api_javascript
  self.ctx.find_asset('patient')
end