Module: ActiveRecord::Acts::Node::InstanceMethods
- Defined in:
- lib/releaf/content/acts_as_node/active_record/acts/node.rb
Overview
All the methods available to a record that has had acts_as_node
specified.
Instance Method Summary collapse
-
#node ⇒ ::Node
Return object corresponding node object.
Instance Method Details
#node ⇒ ::Node
Return object corresponding node object
48 49 50 |
# File 'lib/releaf/content/acts_as_node/active_record/acts/node.rb', line 48 def node ::Node.find_by(content_type: self.class.name, content_id: id) end |