Skip to content

Commit

Permalink
[ci skip] Fully qualify attributes (we're in docs) and move them abov…
Browse files Browse the repository at this point in the history
…e the class so it's not confused with the belongs_to's
  • Loading branch information
kaspth committed Aug 25, 2021
1 parent 1634664 commit 94e8026
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionview/lib/action_view/helpers/form_options_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,19 +223,19 @@ def collection_select(object, method, collection, value_method, text_method, opt
#
# Example object structure for use with this method:
#
# # attributes: id, name
# class Continent < ActiveRecord::Base
# has_many :countries
# # attribs: id, name
# end
#
# # attributes: id, name, continent_id
# class Country < ActiveRecord::Base
# belongs_to :continent
# # attribs: id, name, continent_id
# end
#
# # attributes: id, name, country_id
# class City < ActiveRecord::Base
# belongs_to :country
# # attribs: id, name, country_id
# end
#
# Sample usage:
Expand Down

0 comments on commit 94e8026

Please sign in to comment.