from /home/chedong/.local/share/rdoc
Raised when ActiveStorage::Blob#variant is called on a blob that isn't variable. Use ActiveStorage::Blob#variable? to determine whether a blob is variable.
| Use Case | Command | Description |
|---|---|---|
| Check if a blob is variable | blob.variable? |
Returns true if the blob can be transformed (e.g., image variant). |
Prevent InvariableError |
blob.variant(…) if blob.variable? |
Only call variant after confirming the blob is variable. |
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 16:34 @216.73.216.194
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format