module Tire::Model::Search::Loader

Public Instance Methods

load(options=nil) click to toggle source

Load the "real" model from the database via the corresponding model's `find` method.

Notice that there's an option to eagerly load models with the `:load` option for the search method.

# File lib/tire/model/search.rb, line 215
def load(options=nil)
  options ? self.class.find(self.id, options) : self.class.find(self.id)
end