Module: Rbjs::ControllerExtensions
- Defined in:
- lib/rbjs/setup_action_controller.rb
Instance Method Summary collapse
Instance Method Details
#render(*args, &block) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/rbjs/setup_action_controller.rb', line 3 def render *args, &block if args.first == :js self.content_type = Mime::JS self.response_body = Rbjs::Root.new(view_context, &block).evaluate else super end end |