Fix typo in the documentation

This commit is contained in:
Rafael Mendonça França 2021-11-15 23:24:00 +00:00 committed by GitHub
parent 41e41360bb
commit 1a06f5dc09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
module ActionView
module ModelNaming # :nodoc:
# Converts the given object to an ActiveModel compliant one.
# Converts the given object to an Active Model compliant one.
def convert_to_model(object)
object.respond_to?(:to_model) ? object.to_model : object
end