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

before_filter to before_action for Rails 5 #28

Open
Nikolay-Lipovtsev opened this issue Jan 10, 2018 · 0 comments
Open

before_filter to before_action for Rails 5 #28

Nikolay-Lipovtsev opened this issue Jan 10, 2018 · 0 comments

Comments

@Nikolay-Lipovtsev
Copy link

Please correct before_filter and after_filter on before_action and after_action for Rails 5

userstamp/lib/userstamp.rb

module Ddb
  module Controller
    ...
    module Userstamp
      def self.included(base) # :nodoc:
        base.send           :include, InstanceMethods
        base.before_filter  :set_stamper
        base.after_filter   :reset_stamper
      end
    end
   ...
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant