Freshly/spicerack

View on GitHub
redis_hash/lib/redis_hash/concerns/callbacks.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

# Callbacks provide an extensible mechanism for hooking into a RedisHash.
module RedisHash
  module Callbacks
    extend ActiveSupport::Concern

    included do
      include ActiveSupport::Callbacks
      define_callbacks :initialize, :insertion, :deletion
    end
  end
end