@@ -6,7 +6,7 @@ class Model
6
6
include ActiveModel ::Serializers ::JSON
7
7
include ActiveModel ::Model
8
8
9
- # Declare names of attributes to be included in +sttributes + hash.
9
+ # Declare names of attributes to be included in +attributes + hash.
10
10
# Is only available as a class-method since the ActiveModel::Serialization mixin in Rails
11
11
# uses an +attribute_names+ local variable, which may conflict if we were to add instance methods here.
12
12
#
@@ -19,8 +19,8 @@ class Model
19
19
20
20
# Easily declare instance attributes with setters and getters for each.
21
21
#
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
24
24
# be the value of the initial attributes, regardless of what accessors are defined.
25
25
# The only way to change the change the attributes after initialization is
26
26
# to mutate the +attributes+ directly.
@@ -58,7 +58,7 @@ def self.included(base)
58
58
59
59
# Override the +attributes+ method so that the hash is derived from +attribute_names+.
60
60
#
61
- # The the fields in +attribute_names+ determines the returned hash.
61
+ # The fields in +attribute_names+ determines the returned hash.
62
62
# +attributes+ are returned frozen to prevent any expectations that mutation affects
63
63
# the actual values in the model.
64
64
def attributes
0 commit comments