This blog is part of our Rails 6 series.
Rails 6.0 was recently released.
Rails 6 added of_kind? on
ActiveModel::Errors. It returns true if the
object has provided a key and message associated with it. The default message is
of_kind? is same as ActiveModel::Errors#added?
but, it doesn’t take extra options as a parameter.
Let’s checkout how it works.
Here is the relevant