Sha256: f33f31dce271e3ca131a95e92ce15193ff073d60f7c0e7a33f009b89ad750b25

Contents?: true

Size: 403 Bytes

Versions: 16

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true

module PriceHubble
  module EntityConcern
    # Define all the base callbacks of a common entity.
    module Callbacks
      extend ActiveSupport::Concern

      class_methods do
        include ActiveModel::Callbacks
      end

      included do
        # Define all the base callbacks
        define_model_callbacks :initialize, only: :after
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
pricehubble-1.4.0 lib/price_hubble/entity/concern/callbacks.rb
pricehubble-1.3.0 lib/price_hubble/entity/concern/callbacks.rb
pricehubble-1.2.5 lib/price_hubble/entity/concern/callbacks.rb
pricehubble-1.2.4 lib/price_hubble/entity/concern/callbacks.rb
pricehubble-1.2.3 lib/price_hubble/entity/concern/callbacks.rb
pricehubble-1.2.2 lib/price_hubble/entity/concern/callbacks.rb
pricehubble-1.2.1 lib/price_hubble/entity/concern/callbacks.rb
pricehubble-1.2.0 lib/price_hubble/entity/concern/callbacks.rb
pricehubble-1.1.0 lib/pricehubble/entity/concern/callbacks.rb
pricehubble-1.0.0 lib/pricehubble/entity/concern/callbacks.rb
pricehubble-0.4.2 lib/pricehubble/entity/concern/callbacks.rb
pricehubble-0.4.1 lib/pricehubble/entity/concern/callbacks.rb
pricehubble-0.4.0 lib/pricehubble/entity/concern/callbacks.rb
pricehubble-0.3.0 lib/pricehubble/entity/concern/callbacks.rb
pricehubble-0.2.0 lib/pricehubble/entity/concern/callbacks.rb
pricehubble-0.1.0 lib/pricehubble/entity/concern/callbacks.rb