rails-convention-improvements #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rails-convention-improvements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
NEW FEATURES: - Multi-target support: Add content to multiple error pages at once using arrays - Status code support: Configure using numeric codes (404, 500) alongside symbols - Mixed targeting: Combine symbols and codes in arrays [:not_found, 403, "418"] IMPLEMENTATION: - Updated all convenience methods (add_text, add_html, add_image, add_partial) - Added normalize_targets helper for flexible input validation - Enhanced clear_custom_content to support multi-target operations - Comprehensive error handling with helpful suggestions EXAMPLES: - config.add_html([400, 401, 403, 404], "Shared client error footer") - config.add_text(404, "Content using status code") - config.add_image([:not_found, 403, "500"], "/mixed-target.png") - config.add_partial([404, :forbidden, "401"], "template", locals: {...}) TESTING: - 14 comprehensive test cases covering all scenarios - Backward compatibility tests ensure existing code continues working - Error validation tests with proper ArgumentError messages - Multi-target functionality verified in dummy app COMPATIBILITY: - 100% backward compatible with existing single-symbol usage - All existing configurations continue to work unchanged - No breaking changes to public API 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>/merged
Pull request closed