Class: Node
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Node
- Defined in:
- lib/puppet-herald/models/node.rb
Class Method Summary collapse
Class Method Details
.get_with_reports(id) ⇒ Object
4 5 6 |
# File 'lib/puppet-herald/models/node.rb', line 4 def self.get_with_reports id Node.where("id = ?", id).includes(:reports).first end |