rails-active-support
Installation
SKILL.md
Rails Active Support
CurrentAttributes
- Use
Currentto store per-request data like user, account, or timezone - Do not store mutable state across threads or background jobs
- Always reset
Currentat the beginning of a request - Declare attributes with
attribute :user, :accountinside the class
Core Extensions
- Prefer Rails-provided core extensions over monkey-patching
- Place any custom extensions under
config/initializers/core_ext/ - Avoid reopening core classes in libraries or gems