Permalink
Browse files

Merge pull request #18577 from prathamesh-sonpatki/nodoc-av-modelnaming

nodoc ActionView::ModelNaming module
  • Loading branch information...
guilleiguaran committed Jan 18, 2015
2 parents dc7d7fd + b417e0b commit 86cb1227d52f8f954a4f8f2208899eb02fb76283
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionview/lib/action_view/model_naming.rb
@@ -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

0 comments on commit 86cb122

Please sign in to comment.