Sha256: bb6bdf1b6fe977aa300241d3c9e04da47bc46960eae75a709717f62e6d95ec74

Contents?: true

Size: 470 Bytes

Versions: 4

Compression:

Stored size: 470 Bytes

Contents

module PushType
  class Structure

    attr_accessor :field_store

    include ActiveModel::Model
    include ActiveRecord::AttributeAssignment
    include ActiveRecord::Store
    
    extend ActiveModel::Callbacks
    define_model_callbacks :initialize, only: :after

    include PushType::Customizable
    include PushType::Presentable

    def initialize(*args)
      run_callbacks :initialize do
        @field_store ||= {}
        super
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
push_type_core-0.7.0.beta.1 app/models/push_type/structure.rb
push_type_core-0.6.0 app/models/push_type/structure.rb
push_type_core-0.6.0.beta.4 app/models/push_type/structure.rb
push_type_core-0.6.0.beta.3 app/models/push_type/structure.rb