lib/zertico/responder.rb in zertico-1.1.1 vs lib/zertico/responder.rb in zertico-1.2.0

- old
+ new

@@ -5,9 +5,17 @@ @force_redirect = options.delete(:force_redirect) end protected + def default_render + if request.headers['X-PJAX'] + render layout: false + else + super + end + end + def navigation_behavior(error) if get? raise error elsif has_errors? && default_action if @force_redirect \ No newline at end of file