diff --git a/docs/howto/serialize_poro.md b/docs/howto/serialize_poro.md index 61696e86..20091c52 100644 --- a/docs/howto/serialize_poro.md +++ b/docs/howto/serialize_poro.md @@ -29,7 +29,7 @@ define and validate which methods ActiveModelSerializers expects to be implement An implementation of the complete spec is included either for use or as reference: [`ActiveModelSerializers::Model`](../../lib/active_model_serializers/model.rb). -You can use in production code that will make your PORO a lot cleaner. +You can use in production code that will make your PORO a lot cleaner. The above code now becomes: diff --git a/test/action_controller/namespace_lookup_test.rb b/test/action_controller/namespace_lookup_test.rb index 7b6c20fb..b5c8f496 100644 --- a/test/action_controller/namespace_lookup_test.rb +++ b/test/action_controller/namespace_lookup_test.rb @@ -86,7 +86,7 @@ module ActionController book = Book.new(title: 'New Post', body: 'Body') # because this is a string, ruby can't auto-lookup the constant, so otherwise - # the looku things we mean ::Api::V2 + # the lookup thinks we mean ::Api::V2 render json: book, namespace: 'ActionController::Serialization::NamespaceLookupTest::Api::V2' end @@ -94,7 +94,7 @@ module ActionController book = Book.new(title: 'New Post', body: 'Body') # because this is a string, ruby can't auto-lookup the constant, so otherwise - # the looku things we mean ::Api::V2 + # the lookup thinks we mean ::Api::V2 render json: book, namespace: :'ActionController::Serialization::NamespaceLookupTest::Api::V2' end