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