app/controllers/cogy/application_controller.rb in cogy-0.5.2 vs app/controllers/cogy/application_controller.rb in cogy-0.6.0
- old
+ new
@@ -1,6 +1,8 @@
module Cogy
class ApplicationController < ActionController::Base
- # @todo https://github.com/skroutz/cogy/issues/43
- skip_before_action :verify_authenticity_token
+ if Rails::VERSION::MAJOR < 5
+ # @todo https://github.com/skroutz/cogy/issues/43
+ skip_before_action :verify_authenticity_token
+ end
end
end