lib/pjax.rb in pjax_rails-0.3.1 vs lib/pjax.rb in pjax_rails-0.3.2
- old
+ new
@@ -42,10 +42,10 @@
# prevent_pjax!
# # ...
# end
#
def prevent_pjax!
- raise PjaxUnsupported if pjax_request?
+ raise Pjax::Unsupported if pjax_request?
end
def strip_pjax_param
params.delete(:_pjax)
request.env['QUERY_STRING'] = request.env['QUERY_STRING'].sub(/_pjax=[^&]+&?/, '')