Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v4.2.9) is shown here.
convert_to_model(object)
public
Converts the given object to an ActiveModel compliant one.
# File actionpack/lib/action_controller/model_naming.rb, line 4
def convert_to_model(object)
object.respond_to?(:to_model) ? object.to_model : object
end