This blog is part of our Rails 6 series.
Rails 6.0.0.beta3 was recently released.
Rails 6 added of_kind? on
ActiveModel::Errors. It returns true if
object has provided 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 parameter.
Let’s checkout how it works.
Here is the relevant