File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ define and validate which methods ActiveModelSerializers expects to be implement
29
29
30
30
An implementation of the complete spec is included either for use or as reference:
31
31
[ ` ActiveModelSerializers::Model ` ] ( ../../lib/active_model_serializers/model.rb ) .
32
- You can use in production code that will make your PORO a lot cleaner.
32
+ You can use in production code that will make your PORO a lot cleaner.
33
33
34
34
The above code now becomes:
35
35
Original file line number Diff line number Diff line change @@ -86,15 +86,15 @@ def explicit_namespace_as_string
86
86
book = Book . new ( title : 'New Post' , body : 'Body' )
87
87
88
88
# because this is a string, ruby can't auto-lookup the constant, so otherwise
89
- # the looku things we mean ::Api::V2
89
+ # the lookup thinks we mean ::Api::V2
90
90
render json : book , namespace : 'ActionController::Serialization::NamespaceLookupTest::Api::V2'
91
91
end
92
92
93
93
def explicit_namespace_as_symbol
94
94
book = Book . new ( title : 'New Post' , body : 'Body' )
95
95
96
96
# because this is a string, ruby can't auto-lookup the constant, so otherwise
97
- # the looku things we mean ::Api::V2
97
+ # the lookup thinks we mean ::Api::V2
98
98
render json : book , namespace : :'ActionController::Serialization::NamespaceLookupTest::Api::V2'
99
99
end
100
100
You can’t perform that action at this time.
0 commit comments