From ca6c009273e1cdfca626ee19b99043da0dc51518 Mon Sep 17 00:00:00 2001 From: Konstantin Munteanu Date: Thu, 6 Sep 2018 10:45:31 +0200 Subject: [PATCH] typos --- lib/active_model/serializer.rb | 2 +- lib/active_model/serializer/link.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/active_model/serializer.rb b/lib/active_model/serializer.rb index b49ba5cf..dddb465c 100644 --- a/lib/active_model/serializer.rb +++ b/lib/active_model/serializer.rb @@ -281,7 +281,7 @@ module ActiveModel # def self.link(name, *args, &block) options = args.extract_options! - # For compatibility with the use cae of passing link directly as string argument + # For compatibility with the use case of passing link directly as string argument # without block, we are creating a wrapping block _links[name] = Link.new(name, options, block || ->(_serializer) { args.first }) end diff --git a/lib/active_model/serializer/link.rb b/lib/active_model/serializer/link.rb index 9bf7f1eb..934624d4 100644 --- a/lib/active_model/serializer/link.rb +++ b/lib/active_model/serializer/link.rb @@ -2,7 +2,7 @@ require 'active_model/serializer/field' module ActiveModel class Serializer - # Holds all the data about an serializer link + # Holds all the data about a serializer link # # @example # class PostSerializer < ActiveModel::Serializer