Redmine Compatibility Issues Before_filter
ERROR:
ActionController::RoutingError (undefined method `before_filter' for SptimeController:Class
Did you mean? before_action)
Solution:
As we can see in ActionController::Base
, before_action
is just a new syntax for before_filter
.
However all before_filters
syntax are deprecated in Rails 5.0 and will be removed in Rails 5.1
Example:
class SptimeController < ApplicationController
before_filter :require_login
TO
class SptimeController < ApplicationController
before_action :require_login
Comments
Post a Comment