lib/quirky-api/serializers/quirky_serializer.rb
def _in_cache?(field)
    return false if self.class._cache.blank?
    cached_obj = self.class._cache["#{object.id}.#{object.updated_at.to_i}"]
    cached_obj.present? && cached_obj[field].present?
  end
# Checks whether a certain field is in the cache.
#
# @param [String|Symbol] field  The field to check for.
# @return [Boolean]
Checks whether a certain field is in the cache.
Checks whether a certain field is in the cache .
def _in_cache?(field)
    return false if self.class._cache.blank?
    cached_obj = self.class._cache["#{object.id}.#{object.updated_at.to_i}"]
    cached_obj.present? && cached_obj[field].present?
  end
def _in_cache? ( field ) return false if self . class . _cache . blank? cached_obj = self . class . _cache [ "#{object.id}.#{object.updated_at.to_i}" ] cached_obj . present? && cached_obj [ field ] . present? end
Checks whether a certain field is in the cache.
Checks whether a certain field is in the cache .
None
Boolean
field
field The field to check for.
field The field to check for .