Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tool_pouch

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tool_pouch

  • 0.0.34
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Cocky Bouncer Dependencies

  • Method current_user in the ApplicationController
  • User Model
    • User.authenticate(login, pass) # Valide que le login/pass est bon et retourne l'usager
    • user.role # Retourne une string qui identifie le role de l'usager
    • model.owned_by?(user) # Indique si le model est possédé par l'usager

Cocky Bouncer Optional Dependencies

  • User Model
    • User.authenticate_with_remember_me_key(cookie_key) # Retourne l'usager associé à la clé du cookie
    • user.remember_me_key # Génère la clé du cookie pour la fonction remember_me
    • user.log_last_login! # Set la date du dernier login
    • model.find_by_identifier(id) # Find par défaut pour retrouver un enregistrement

Cocky Bouncer provides ActionController authenticate! # Authentifie un utilisateur can?(:action, :controller, record) # Indique si le current_user peut accéder à la fonction can_view?(:section) # disconnect! # Déconnecte le current_user

FAQs

Package last updated on 09 Jan 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc