Skip to content

Commit

Permalink
"undefined method `before_action' for ActionController::Base:Class"
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Nov 15, 2016
1 parent 7907941 commit 73e26b1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/pjax.rb
Expand Up @@ -7,8 +7,13 @@ module Pjax

rescue_from Pjax::Unsupported, :with => :pjax_unsupported

before_action :strip_pjax_param, :if => :pjax_request?
before_action :set_pjax_url, :if => :pjax_request?
if respond_to? :before_action
before_action :strip_pjax_param, :if => :pjax_request?
before_action :set_pjax_url, :if => :pjax_request?
else
before_filter :strip_pjax_param, :if => :pjax_request?
before_filter :set_pjax_url, :if => :pjax_request?
end
end

class Error < StandardError; end
Expand Down

0 comments on commit 73e26b1

Please sign in to comment.