Sha256: 1a28bf1b31eac6c6b6c297bbe489f64a4d99d8f23fc70d134ed8060846d5827d
Contents?: true
Size: 578 Bytes
Versions: 66
Compression:
Stored size: 578 Bytes
Contents
require 'active_support/concern' require 'curation_concerns/callbacks/registry' module CurationConcerns module Callbacks extend ActiveSupport::Concern included do # Define class instance variable as endpoint to the # Callback::Registry api. @callback = Registry.new end module ClassMethods # Reader for class instance variable containing callback definitions. def callback @callback end end # Accessor to Callback::Registry api for instances. def callback self.class.callback end end end
Version data entries
66 entries across 66 versions & 1 rubygems