lib/sunspot/field.rb in sunspot-2.2.7 vs lib/sunspot/field.rb in sunspot-2.2.8
- old
+ new
@@ -91,9 +91,20 @@
#
def joined?
!!@joined
end
+ #
+ # Whether the field is stored or not.
+ #
+ # ==== Returns
+ #
+ # Boolean:: True if this field is a stored field
+ #
+ def stored?
+ !!@stored
+ end
+
def hash
indexed_name.hash
end
def eql?(field)