Skip to content

Commit 1634664

Browse files
committed
[ci skip] Use more consistent spacing; trim some ending newlines
1 parent 1ade156 commit 1634664

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

actionview/lib/action_view/helpers/form_options_helper.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ module Helpers # :nodoc:
9090
# <option value="3">Jokes</option>
9191
# <option value="4">Poems</option>
9292
# </select>
93-
#
9493
module FormOptionsHelper
9594
# ERB::Util can mask some helpers like textilize. Make sure to include them.
9695
include TextHelper
@@ -156,7 +155,6 @@ module FormOptionsHelper
156155
#
157156
# In case if you don't want the helper to generate this hidden field you can specify
158157
# <tt>include_hidden: false</tt> option.
159-
#
160158
def select(object, method, choices = nil, options = {}, html_options = {}, &block)
161159
Tags::Select.new(object, method, self, choices, options, html_options, &block).render
162160
end
@@ -180,6 +178,7 @@ def select(object, method, choices = nil, options = {}, html_options = {}, &bloc
180178
#
181179
# class Author < ActiveRecord::Base
182180
# has_many :posts
181+
#
183182
# def name_with_initial
184183
# "#{first_name.first}. #{last_name}"
185184
# end
@@ -255,7 +254,6 @@ def collection_select(object, method, collection, value_method, text_method, opt
255254
# <option value="2">Ireland</option>
256255
# </optgroup>
257256
# </select>
258-
#
259257
def grouped_collection_select(object, method, collection, group_method, group_label_method, option_key_method, option_value_method, options = {}, html_options = {})
260258
Tags::GroupedCollectionSelect.new(object, method, self, collection, group_method, group_label_method, option_key_method, option_value_method, options, html_options).render
261259
end
@@ -625,11 +623,14 @@ def weekday_options_for_select(selected = nil, index_as_value: false, day_format
625623
# retrieve the value/text.
626624
#
627625
# Example object structure for use with this method:
626+
#
628627
# class Post < ActiveRecord::Base
629628
# belongs_to :author
630629
# end
630+
#
631631
# class Author < ActiveRecord::Base
632632
# has_many :posts
633+
#
633634
# def name_with_initial
634635
# "#{first_name.first}. #{last_name}"
635636
# end

0 commit comments

Comments
 (0)