Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing Rails 5 depricated before_filter by Rails 5 new standard be… #61

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/http_accept_language/auto_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module AutoLocale
extend ActiveSupport::Concern

included do
before_filter :set_locale
before_action :set_locale
end

private
Expand Down
2 changes: 1 addition & 1 deletion spec/auto_locale_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def initialize(header = nil)
@header = header
end

def self.before_filter(dummy)
def self.before_action(dummy)
# dummy method
end

Expand Down