Sha256: 5a60fce4b35874b76a7f6486000374e8e0d0c6b733b1a0ec6250aac844742fb9

Contents?: true

Size: 491 Bytes

Versions: 2

Compression:

Stored size: 491 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

    def self.name
      'PushType::Structure'
    end

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

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
push_type_core-0.6.0.beta.2 app/models/push_type/structure.rb
push_type_core-0.6.0.beta.1 app/models/push_type/structure.rb