Module: Gon::Rabl
- Defined in:
- lib/gon/rabl.rb
Class Method Summary collapse
Class Method Details
.handler(args, global = false) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/gon/rabl.rb', line 8 def handler(args, global = false) = args, global if global && ![:template] raise 'You should provide :template when use rabl with global variables' end include_helpers data = parse_rabl \ Gon::Base.get_template_path(, 'rabl'), Gon::Base.get_controller() [data, ] end |