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.282 lib/ish/cache_key.rb
ish_models-0.0.33.281 lib/ish/cache_key.rb
ish_models-0.0.33.280 lib/ish/cache_key.rb
ish_models-0.0.33.279 lib/ish/cache_key.rb
ish_models-0.0.33.278 lib/ish/cache_key.rb
ish_models-0.0.33.277 lib/ish/cache_key.rb
ish_models-0.0.33.276 lib/ish/cache_key.rb
ish_models-0.0.33.275 lib/ish/cache_key.rb
ish_models-0.0.33.274 lib/ish/cache_key.rb
ish_models-0.0.33.273 lib/ish/cache_key.rb
ish_models-0.0.33.272 lib/ish/cache_key.rb
ish_models-0.0.33.271 lib/ish/cache_key.rb
ish_models-0.0.33.270 lib/ish/cache_key.rb
ish_models-0.0.33.269 lib/ish/cache_key.rb
ish_models-0.0.33.268 lib/ish/cache_key.rb
ish_models-0.0.33.267 lib/ish/cache_key.rb
ish_models-0.0.33.266 lib/ish/cache_key.rb
ish_models-0.0.33.265 lib/ish/cache_key.rb
ish_models-0.0.33.264 lib/ish/cache_key.rb
ish_models-0.0.33.263 lib/ish/cache_key.rb