Class: RemoteBootstrapModal::ModalResponder
- Inherits:
-
ActionController::Responder
- Object
- ActionController::Responder
- RemoteBootstrapModal::ModalResponder
- Defined in:
- app/responders/remote_bootstrap_modal/modal_responder.rb
Instance Method Summary collapse
Instance Method Details
#default_render(*args) ⇒ Object
14 15 16 |
# File 'app/responders/remote_bootstrap_modal/modal_responder.rb', line 14 def default_render(*args) render(*args) end |
#redirect_to(options) ⇒ Object
18 19 20 21 22 23 24 |
# File 'app/responders/remote_bootstrap_modal/modal_responder.rb', line 18 def redirect_to() if request.xhr? head :ok, location: controller.url_for() else controller.redirect_to() end end |
#render(*args) ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/responders/remote_bootstrap_modal/modal_responder.rb', line 6 def render(*args) = args. if request.xhr? .merge! layout: modal_layout end controller.render *args, end |