Skip to content

Commit

Permalink
Use before_action rather than before_filter to avoid rails 5.0 deprec…
Browse files Browse the repository at this point in the history
…ation warnings
  • Loading branch information
jfarey committed Jan 24, 2017
1 parent 14e846e commit 5f91395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/twitter/bootstrap/rails/breadcrumbs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class << self
module ClassMethods
def add_bootstrap_breadcrumb(name, url = '', options = {})
options.merge! :klass => self.name
before_filter options do |controller|
before_action options do |controller|
controller.send :add_bootstrap_breadcrumb, name, url, options
end
end
Expand Down

0 comments on commit 5f91395

Please sign in to comment.