Sha256: d537dcd67955f736f281d15db7673cc2607d839438496a0acffaf89fcea7a84b

Contents?: true

Size: 282 Bytes

Versions: 155

Compression:

Stored size: 282 Bytes

Contents


class Ish::CacheKey
  include ::Mongoid::Document
  include ::Mongoid::Timestamps

  field :cities,         :type => Time # /api/cities.json
  field :feature_cities, :type => Time # /api/cities/features.json

  def self.one
    Ish::CacheKey.first || Ish::CacheKey.new
  end
end

Version data entries

155 entries across 155 versions & 1 rubygems

Version Path
ish_models-0.0.33.262 lib/ish/cache_key.rb
ish_models-0.0.33.261 lib/ish/cache_key.rb
ish_models-0.0.33.260 lib/ish/cache_key.rb
ish_models-0.0.33.259 lib/ish/cache_key.rb
ish_models-0.0.33.258 lib/ish/cache_key.rb
ish_models-0.0.33.257 lib/ish/cache_key.rb
ish_models-0.0.33.256 lib/ish/cache_key.rb
ish_models-0.0.33.255 lib/ish/cache_key.rb
ish_models-0.0.33.254 lib/ish/cache_key.rb
ish_models-0.0.33.253 lib/ish/cache_key.rb
ish_models-0.0.33.252 lib/ish/cache_key.rb
ish_models-0.0.33.251 lib/ish/cache_key.rb
ish_models-0.0.33.250 lib/ish/cache_key.rb
ish_models-0.0.33.249 lib/ish/cache_key.rb
ish_models-0.0.33.248 lib/ish/cache_key.rb
ish_models-0.0.33.247 lib/ish/cache_key.rb
ish_models-0.0.33.246 lib/ish/cache_key.rb
ish_models-0.0.33.245 lib/ish/cache_key.rb
ish_models-0.0.33.244 lib/ish/cache_key.rb
ish_models-0.0.33.243 lib/ish/cache_key.rb