Module: Mongoid::Haystack::Denormalization

Defined in:
lib/mongoid-haystack/search.rb

Defined Under Namespace

Classes: Results

Instance Method Summary collapse

Instance Method Details

#_denormalizedObject



199
200
201
# File 'lib/mongoid-haystack/search.rb', line 199

def _denormalized
  @_denormalized ||= (is_a?(Mongoid::Criteria) ? ::Mongoid::Haystack.denormalize(self) : self)
end

#modelsObject



195
196
197
# File 'lib/mongoid-haystack/search.rb', line 195

def models
  Results.for(query = self)
end