Module: Hancock::Fancybox
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/controllers/concerns/hancock/fancybox.rb
Instance Method Summary collapse
Instance Method Details
#render_for_fancybox ⇒ Object
7 8 9 |
# File 'app/controllers/concerns/hancock/fancybox.rb', line 7 def render_for_fancybox render layout: false if request_for_fancybox? end |
#request_for_fancybox? ⇒ Boolean
11 12 13 |
# File 'app/controllers/concerns/hancock/fancybox.rb', line 11 def request_for_fancybox? request.xhr? and params[:load_by_fancybox] == "true" end |