1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides
Maurizio De Santis 1a098c542d Remove Decorator pattern in Overriding existing classes examples
Engines guide in the Overriding Models and Controllers section
references the Decorator pattern, which isn't appropriate, since
Decorator pattern is not about reopening existing classes, is about
adding functionality to existing object instances; something that in
Ruby is commonly implemented using Delegators.

Moreover, the suggested naming convention for overrides,
`app/decorators/**/*_decorator*.rb`, conflicts with a naming convention
commonly used for View Model / Presentation Model decorators, adopted
by popular gems such as `draper`, as well as by custom implementations.
2019-01-16 14:16:46 +01:00
..
assets allow right to left styling of docs (#3) 2018-11-19 18:59:52 +02:00
bug_report_templates Specify hosts in bug report template. 2018-12-25 08:40:56 +09:00
rails_guides Enable Lint/UselessAssignment cop to avoid unused variable warnings (#34904) 2019-01-09 18:09:01 +09:00
source Remove Decorator pattern in Overriding existing classes examples 2019-01-16 14:16:46 +01:00
.document
CHANGELOG.md Require Ruby 2.5 for Rails 6. 2018-12-19 21:47:50 +01:00
rails_guides.rb Use safe nav operator when calling RailsGuides::Generator.new 2018-12-05 12:41:07 +09:00
Rakefile Enable Start/EndWith and RegexpMatch cops 2018-07-28 17:37:17 -04:00
w3c_validator.rb