From a966aac320d9abbc853a5a662a3a247becc158bc Mon Sep 17 00:00:00 2001 From: Jonathan Parrott <44783462+jonathanparrott@users.noreply.github.com> Date: Wed, 6 Nov 2024 12:23:36 -0500 Subject: [PATCH] Update model docs for clarity --- lib/sequel/model/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sequel/model/base.rb b/lib/sequel/model/base.rb index d8a403091..1b57a183e 100644 --- a/lib/sequel/model/base.rb +++ b/lib/sequel/model/base.rb @@ -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 @@ -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