diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2017-12-07 11:20:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-07 11:20:16 +0000 |
commit | e2c1d5e1d73322945c6d0477c5d8a004479e6b7a (patch) | |
tree | 6ae3a289106864a3818cca6518c0ae5849f45a02 | |
parent | 0ba5615e403e9f44c775633dc2a1275a1e971390 (diff) | |
parent | 2fa29037678874b25ad257dff8974055e25c9384 (diff) | |
download | rails-e2c1d5e1d73322945c6d0477c5d8a004479e6b7a.tar.gz rails-e2c1d5e1d73322945c6d0477c5d8a004479e6b7a.tar.bz2 rails-e2c1d5e1d73322945c6d0477c5d8a004479e6b7a.zip |
Merge pull request #31358 from yhirano55/made_example_codes_inherit_application_record
[ci skip] Make `Todo` classes inherit `ApplicationRecord`
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/concerning.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/concerning.rb b/activesupport/lib/active_support/core_ext/module/concerning.rb index 370a948eea..800bf213cc 100644 --- a/activesupport/lib/active_support/core_ext/module/concerning.rb +++ b/activesupport/lib/active_support/core_ext/module/concerning.rb @@ -22,7 +22,7 @@ class Module # # == Using comments: # - # class Todo + # class Todo < ApplicationRecord # # Other todo implementation # # ... # @@ -42,7 +42,7 @@ class Module # # Noisy syntax. # - # class Todo + # class Todo < ApplicationRecord # # Other todo implementation # # ... # @@ -70,7 +70,7 @@ class Module # increased overhead can be a reasonable tradeoff even if it reduces our # at-a-glance perception of how things work. # - # class Todo + # class Todo < ApplicationRecord # # Other todo implementation # # ... # @@ -82,7 +82,7 @@ class Module # By quieting the mix-in noise, we arrive at a natural, low-ceremony way to # separate bite-sized concerns. # - # class Todo + # class Todo < ApplicationRecord # # Other todo implementation # # ... # @@ -101,7 +101,7 @@ class Module # end # # Todo.ancestors - # # => [Todo, Todo::EventTracking, Object] + # # => [Todo, Todo::EventTracking, ApplicationRecord, Object] # # This small step has some wonderful ripple effects. We can # * grok the behavior of our class in one glance, |