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
2929
3030An implementation of the complete spec is included either for use or as reference:
3131[ ` 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.
3333
3434The above code now becomes:
3535
Original file line number Diff line number Diff line change @@ -86,15 +86,15 @@ def explicit_namespace_as_string
8686 book = Book . new ( title : 'New Post' , body : 'Body' )
8787
8888 # 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
9090 render json : book , namespace : 'ActionController::Serialization::NamespaceLookupTest::Api::V2'
9191 end
9292
9393 def explicit_namespace_as_symbol
9494 book = Book . new ( title : 'New Post' , body : 'Body' )
9595
9696 # 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
9898 render json : book , namespace : :'ActionController::Serialization::NamespaceLookupTest::Api::V2'
9999 end
100100
You can’t perform that action at this time.
0 commit comments