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.242 lib/ish/cache_key.rb
ish_models-0.0.33.241 lib/ish/cache_key.rb
ish_models-0.0.33.240 lib/ish/cache_key.rb
ish_models-0.0.33.239 lib/ish/cache_key.rb
ish_models-0.0.33.238 lib/ish/cache_key.rb
ish_models-0.0.33.237 lib/ish/cache_key.rb
ish_models-0.0.33.236 lib/ish/cache_key.rb
ish_models-0.0.33.235 lib/ish/cache_key.rb
ish_models-0.0.33.234 lib/ish/cache_key.rb
ish_models-0.0.33.233 lib/ish/cache_key.rb
ish_models-0.0.33.232 lib/ish/cache_key.rb
ish_models-0.0.33.231 lib/ish/cache_key.rb
ish_models-0.0.33.230 lib/ish/cache_key.rb
ish_models-0.0.33.229 lib/ish/cache_key.rb
ish_models-0.0.33.228 lib/ish/cache_key.rb
ish_models-0.0.33.227 lib/ish/cache_key.rb
ish_models-0.0.33.226 lib/ish/cache_key.rb
ish_models-0.0.33.225 lib/ish/cache_key.rb
ish_models-0.0.33.224 lib/ish/cache_key.rb
ish_models-0.0.33.222 lib/ish/cache_key.rb