diff --git a/README.md b/README.md index c5103d3..bdb42eb 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ You can easily set the locale used for i18n in a before-filter: ```ruby class SomeController < ApplicationController - before_filter :set_locale + before_action :set_locale private def set_locale diff --git a/lib/http_accept_language/auto_locale.rb b/lib/http_accept_language/auto_locale.rb index ce6a991..37aab50 100644 --- a/lib/http_accept_language/auto_locale.rb +++ b/lib/http_accept_language/auto_locale.rb @@ -5,7 +5,7 @@ module AutoLocale extend ActiveSupport::Concern included do - before_filter :set_locale + before_action :set_locale end private diff --git a/spec/auto_locale_spec.rb b/spec/auto_locale_spec.rb index c8bead2..23af640 100644 --- a/spec/auto_locale_spec.rb +++ b/spec/auto_locale_spec.rb @@ -11,7 +11,7 @@ def initialize(header = nil) @header = header end - def self.before_filter(dummy) + def self.before_action(dummy) # dummy method end