Flowdock
method

_default_wrap_model

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

These similar methods exist in v6.1.7.7:

_default_wrap_model() protected

Determine the wrapper model from the controller’s name. By convention, this could be done by trying to find the defined model that has the same singularize name as the controller. For example, UsersController will try to find if the User model exists.

This method also does namespace lookup. Foo::Bar::UsersController will try to find Foo::Bar::User, Foo::User and finally User.

Show source
Register or log in to add new notes.