Skip to content

Commit 3d75b09

Browse files
committed
Remove outdated information in the Dataset#select_map documentation
Dataset#select_map has supported a block argument that returns an array and has supported both an argument and a block since 8ac15fe in 2012.
1 parent 1d81596 commit 3d75b09

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/sequel/dataset/actions.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -727,10 +727,7 @@ def select_hash_groups(key_column, value_column, opts = OPTS)
727727
end
728728

729729
# Selects the column given (either as an argument or as a block), and
730-
# returns an array of all values of that column in the dataset. If you
731-
# give a block argument that returns an array with multiple entries,
732-
# the contents of the resulting array are undefined. Raises an Error
733-
# if called with both an argument and a block.
730+
# returns an array of all values of that column in the dataset.
734731
#
735732
# DB[:table].select_map(:id) # SELECT id FROM table
736733
# # => [3, 5, 8, 1, ...]

0 commit comments

Comments
 (0)