@@ -6,7 +6,7 @@ class Model
66 include ActiveModel ::Serializers ::JSON
77 include ActiveModel ::Model
88
9- # Declare names of attributes to be included in +sttributes + hash.
9+ # Declare names of attributes to be included in +attributes + hash.
1010 # Is only available as a class-method since the ActiveModel::Serialization mixin in Rails
1111 # uses an +attribute_names+ local variable, which may conflict if we were to add instance methods here.
1212 #
@@ -19,8 +19,8 @@ class Model
1919
2020 # Easily declare instance attributes with setters and getters for each.
2121 #
22- # All attributes to initialize an instance must have setters.
23- # However, the hash turned by +attributes+ instance method will ALWAYS
22+ # To initialize an instance, all attributes must have setters.
23+ # However, the hash returned by +attributes+ instance method will ALWAYS
2424 # be the value of the initial attributes, regardless of what accessors are defined.
2525 # The only way to change the change the attributes after initialization is
2626 # to mutate the +attributes+ directly.
@@ -58,7 +58,7 @@ def self.included(base)
5858
5959 # Override the +attributes+ method so that the hash is derived from +attribute_names+.
6060 #
61- # The the fields in +attribute_names+ determines the returned hash.
61+ # The fields in +attribute_names+ determines the returned hash.
6262 # +attributes+ are returned frozen to prevent any expectations that mutation affects
6363 # the actual values in the model.
6464 def attributes
0 commit comments