Skip to content

Commit 94e8026

Browse files
committed
[ci skip] Fully qualify attributes (we're in docs) and move them above the class so it's not confused with the belongs_to's
1 parent 1634664 commit 94e8026

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

actionview/lib/action_view/helpers/form_options_helper.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,19 +223,19 @@ def collection_select(object, method, collection, value_method, text_method, opt
223223
#
224224
# Example object structure for use with this method:
225225
#
226+
# # attributes: id, name
226227
# class Continent < ActiveRecord::Base
227228
# has_many :countries
228-
# # attribs: id, name
229229
# end
230230
#
231+
# # attributes: id, name, continent_id
231232
# class Country < ActiveRecord::Base
232233
# belongs_to :continent
233-
# # attribs: id, name, continent_id
234234
# end
235235
#
236+
# # attributes: id, name, country_id
236237
# class City < ActiveRecord::Base
237238
# belongs_to :country
238-
# # attribs: id, name, country_id
239239
# end
240240
#
241241
# Sample usage:

0 commit comments

Comments
 (0)