Skip to content

Commit 5ac1fc1

Browse files
committed
Changing comments to use ApplicationModel.
The comments have become outdated since the creation of the ApplicationModel. Now, the model classes should inherit from ApplicationModel instead of ActiveRecord::Base.
1 parent 7308c88 commit 5ac1fc1

31 files changed

+181
-181
lines changed

activerecord/lib/active_record/aggregations.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def clear_aggregation_cache #:nodoc:
1515
# existing object) and how it can be turned back into attributes (when the entity is saved to
1616
# the database).
1717
#
18-
# class Customer < ActiveRecord::Base
18+
# class Customer < ApplicationModel
1919
# composed_of :balance, class_name: "Money", mapping: %w(balance amount)
2020
# composed_of :address, mapping: [ %w(address_street street), %w(address_city city) ]
2121
# end
@@ -136,7 +136,7 @@ def clear_aggregation_cache #:nodoc:
136136
# or an array. The <tt>:constructor</tt> and <tt>:converter</tt> options can be used to meet
137137
# these requirements:
138138
#
139-
# class NetworkResource < ActiveRecord::Base
139+
# class NetworkResource < ApplicationModel
140140
# composed_of :cidr,
141141
# class_name: 'NetAddr::CIDR',
142142
# mapping: [ %w(network_address network), %w(cidr_range bits) ],

0 commit comments

Comments
 (0)