Method: Querylet::Querylet#get_partial
- Defined in:
- lib/querylet.rb
#get_partial(name, dot_path) ⇒ Object
29 30 31 32 33 |
# File 'lib/querylet.rb', line 29 def get_partial name, dot_path path = @sql_path + '/' + dot_path.to_s.split('.').join('/') + '.sql' template = File.read(path).to_s.chomp self.compile(template).call(@data) end |