instance method
_is_active_model?
Ruby on Rails 2.5.0
Since v2.4.1 Last seen in v2.5.0 PrivateAvailable in: v2.4.1 v2.5.0
Signature
_is_active_model?(object)
No documentation comment.
Parameters
-
objectreq
Source
# File lib/jbuilder/jbuilder_template.rb, line 128
def _is_active_model?(object)
object.class.respond_to?(:model_name) && object.respond_to?(:to_partial_path)
end
Defined in lib/jbuilder/jbuilder_template.rb line 128
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in JbuilderTemplate