nodoc ActionView::ModelNaming module

- Its only used by ActionView internals and not supposed to be used
  through public API.
This commit is contained in:
Prathamesh Sonpatki 2015-01-18 11:57:36 +05:30
parent dc7d7fd6f2
commit b417e0b753

@ -1,5 +1,5 @@
module ActionView
module ModelNaming
module ModelNaming #:nodoc:
# Converts the given object to an ActiveModel compliant one.
def convert_to_model(object)
object.respond_to?(:to_model) ? object.to_model : object