Sha256: 4d60a60fa112cb08b3f61b713ff468937abf2a83f1bb7d6a20cf93154c20e1bb

Contents?: true

Size: 260 Bytes

Versions: 9

Compression:

Stored size: 260 Bytes

Contents

require 'active_support/concern'

module Georgia
  module Concerns
    module Cacheable
      extend ActiveSupport::Concern

      included do

        def cache_key
          [self.url, self.updated_at.to_i].join('/')
        end

      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
georgia-0.7.8 app/models/georgia/concerns/cacheable.rb
georgia-0.7.7 app/models/georgia/concerns/cacheable.rb
georgia-0.7.6 app/models/georgia/concerns/cacheable.rb
georgia-0.7.5 app/models/georgia/concerns/cacheable.rb
georgia-0.7.4 app/models/georgia/concerns/cacheable.rb
georgia-0.7.3 app/models/georgia/concerns/cacheable.rb
georgia-0.7.2 app/models/georgia/concerns/cacheable.rb
georgia-0.7.1 app/models/georgia/concerns/cacheable.rb
georgia-0.7.0 app/models/georgia/concerns/cacheable.rb