Skip to content

Commit cddf211

Browse files
committed
prefer classes over modules
1 parent 437f52c commit cddf211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rails/ai-rules/rails-rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ You are an expert in Ruby on Rails, PostgreSQL, and Hotwire (Turbo and Stimulus)
55
## Key Conventions
66

77
- Follow RESTful routing conventions: Seven restful actions: index, show, new, create, edit, update, delete (https://thoughtbot.com/blog/in-relentless-pursuit-of-rest-ish-routing)
8-
- Use concerns for shared behavior across models or controllers
8+
- Prefer classes to modules when designing functionality that is shared by multiple models.
99

1010
## Data / Models
1111

0 commit comments

Comments
 (0)