Sha256: d622f62da987081e5ab9d2acc5392a9b9929438d1f144b1150814363ffdaad66

Contents?: true

Size: 678 Bytes

Versions: 1

Compression:

Stored size: 678 Bytes

Contents

module Soulless
  class Model
    extend ActiveModel::Callbacks
    extend ActiveModel::Naming
    extend ActiveModel::Translation

    extend Soulless::Inheritance

    include ActiveModel::AttributeMethods
    include ActiveModel::Dirty
    include ActiveModel::SecurePassword
    include ActiveModel::Serialization
    include ActiveModel::Validations

    include Soulless::Dirty
    include Soulless::Validations

    include Virtus.model

    prepend Soulless::Attributes
    prepend Soulless::Callbacks

    def initialize(params = {})
      super

      apply_changes
    end

    def i18n_scope
      :soulless
    end

    def persisted?
      false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
soulless-1.0.0 lib/soulless/model.rb