Class: HqueryPatientApi::Generator
- Inherits:
-
Object
- Object
- HqueryPatientApi::Generator
- Defined in:
- lib/hquery/generator.rb
Constant Summary collapse
- @@ctx =
nil
Class Method Summary collapse
Class Method Details
.ctx ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/hquery/generator.rb', line 5 def self.ctx unless @@ctx @@ctx = Sprockets::Environment.new(File.("../../../", __FILE__)) @@ctx.append_path "app/assets/javascripts" end @@ctx end |
.patient_api_javascript ⇒ Object
13 14 15 |
# File 'lib/hquery/generator.rb', line 13 def self.patient_api_javascript self.ctx.find_asset('patient') end |