Module: Clearance::UsersController::PrivateInstanceMethods
- Defined in:
- lib/clearance/users_controller.rb
Instance Method Summary collapse
Instance Method Details
#ensure_user_is_accessing_self ⇒ Object
16 17 18 |
# File 'lib/clearance/users_controller.rb', line 16 def ensure_user_is_accessing_self deny_access 'You cannot edit that user.' unless current_user.id.to_i == params[:id].to_i end |