Module: Gon::Rabl
- Defined in:
- lib/gon/rabl.rb
Class Method Summary collapse
Class Method Details
.handler(args, global = false) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/gon/rabl.rb', line 16 def handler(args, global = false) = args, global if global && ![:template] raise 'You should provide :template when use rabl with global variables' end data = parse_rabl \ Gon::EnvFinder.template_path(, 'rabl'), Gon::EnvFinder.controller_env(), [:locals] [data, ] end |