active-record-callbacks
OfficialMaster Rails callbacks for robust data integrity.
AuthorThinkOodle
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides expert guidance on using Active Record callbacks effectively, helping you avoid common pitfalls and ensure your data integrity is maintained throughout the lifecycle of your models.
Core Features & Use Cases
- Lifecycle Hooks: Understand and implement
before_save,after_create,after_commit, and other callbacks. - Decision Framework: Learn when callbacks are appropriate versus when to use service objects.
- Use Case: You need to ensure a user's email is always lowercased and stripped of whitespace before it's saved to the database. This Skill shows you how to implement this using a
before_savecallback.
Quick Start
Use the active-record-callbacks skill to implement a before_save callback that normalizes user email addresses.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: active-record-callbacks Download link: https://github.com/ThinkOodle/rails-skills/archive/main.zip#active-record-callbacks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.