Sha256: 9140266e6e5b588a9e5c00ccde410fae2914029be14af08eb3624facdbae2be3

Contents?: true

Size: 193 Bytes

Versions: 4

Compression:

Stored size: 193 Bytes

Contents

require 'mock_redis'

class User < ActiveRecord::Base

  include BucketMaker::Models::Redisable

  def self.redis
    # We Mock the redis behaviour here
    @redis ||= MockRedis.new
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bucket_maker-0.0.4 spec/dummy/app/models/user.rb
bucket_maker-0.0.3 spec/dummy/app/models/user.rb
bucket_maker-0.0.2 spec/dummy/app/models/user.rb
bucket_maker-0.0.1 spec/dummy/app/models/user.rb