Sha256: 8959ff1a5e42fa0f3bf756f315bec2b95e1db05c7b1b46aceb3105f982568293

Contents?: true

Size: 444 Bytes

Versions: 29

Compression:

Stored size: 444 Bytes

Contents

# frozen-string-literal: true

module Mobility
  module Plugins
    module Sequel
=begin

Adds hook to clear Mobility cache when +refresh+ is called on Sequel model.

=end
      module Cache
        extend Plugin

        requires :cache, include: false

        included_hook do |klass|
          define_cache_hooks(klass, :refresh) if options[:cache]
        end
      end
    end

    register_plugin(:sequel_cache, Sequel::Cache)
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
mobility-1.3.0.rc3 lib/mobility/plugins/sequel/cache.rb
mobility-1.3.0.rc2 lib/mobility/plugins/sequel/cache.rb
mobility-1.3.0.rc1 lib/mobility/plugins/sequel/cache.rb
mobility-1.2.9 lib/mobility/plugins/sequel/cache.rb
mobility-1.2.8 lib/mobility/plugins/sequel/cache.rb
mobility-1.2.7 lib/mobility/plugins/sequel/cache.rb
mobility-1.2.6 lib/mobility/plugins/sequel/cache.rb
mobility-1.2.5 lib/mobility/plugins/sequel/cache.rb
mobility-1.2.4 lib/mobility/plugins/sequel/cache.rb
mobility-1.2.3 lib/mobility/plugins/sequel/cache.rb
mobility-1.2.2 lib/mobility/plugins/sequel/cache.rb
mobility-1.2.1 lib/mobility/plugins/sequel/cache.rb
mobility-1.2.0 lib/mobility/plugins/sequel/cache.rb
mobility-1.1.3 lib/mobility/plugins/sequel/cache.rb
mobility-1.1.2 lib/mobility/plugins/sequel/cache.rb
mobility-1.1.1 lib/mobility/plugins/sequel/cache.rb
mobility-1.1.0 lib/mobility/plugins/sequel/cache.rb
mobility-1.0.7 lib/mobility/plugins/sequel/cache.rb
mobility-1.0.6 lib/mobility/plugins/sequel/cache.rb
mobility-1.0.5 lib/mobility/plugins/sequel/cache.rb