Module: StoreCurrentUser::ControllerMethods::ClassMethods
- Defined in:
- lib/store_current_user/controller_methods.rb
Instance Method Summary collapse
Instance Method Details
#stores_current_user ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/store_current_user/controller_methods.rb', line 4 def stores_current_user if respond_to? :before_filter # Rails 3 before_filter :set_current_user elsif respond_to? :before_action # Rails >= 4 before_action :set_current_user end end |