Sha256: d58015968e34ab8a281f249c45556df8110890fc7793cc7d91bda46dba6ca6a7

Contents?: true

Size: 445 Bytes

Versions: 5

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module Masks
  # Base model for synthetic +ActiveRecord+-style models in masks.
  #
  # Most models in masks use this in their inheritance tree, as it
  # provides attributes, validations, and other features from
  # +ActiveModel+.
  class ApplicationModel
    include ActiveModel::Model
    include ActiveModel::Validations
    include ActiveModel::Attributes
    include ActiveModel::Serializers::JSON
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
masks-0.4.0 app/models/masks/application_model.rb
masks-0.3.2 app/models/masks/application_model.rb
masks-0.3.1 app/models/masks/application_model.rb
masks-0.3.0 app/models/masks/application_model.rb
masks-0.2.0 app/models/masks/application_model.rb