Skip to content

Commit

Permalink
Update model docs for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanparrott authored Nov 6, 2024
1 parent 050df53 commit a966aac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sequel/model/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module ClassMethods
attr_reader :simple_pk

# Should be the literal table name if this Model's dataset is a simple table (no select, order, join, etc.),
# or nil otherwise. This and simple_pk are used for an optimization in Model.[].
# or nil otherwise. This and simple_pk are used for an optimization in Model[].
attr_reader :simple_table

# Whether mass assigning via .create/.new/#set/#update should raise an error
Expand Down Expand Up @@ -398,7 +398,7 @@ def def_column_alias(meth, column)
end

# Finds a single record according to the supplied filter.
# You are encouraged to use Model.[] or Model.first instead of this method.
# You are encouraged to use Model[] or Model.first instead of this method.
#
# Artist.find(name: 'Bob')
# # SELECT * FROM artists WHERE (name = 'Bob') LIMIT 1
Expand Down

0 comments on commit a966aac

Please sign in to comment.