Class: Charming::ApplicationModel

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Attributes, ActiveModel::Model
Defined in:
lib/charming/application_model.rb

Overview

ApplicationModel is the persistent state base for application data models. It includes ‘ActiveModel::Model` (validation, initialisation) and `ActiveModel::Attributes` (typed attributes with defaults via `attribute :name, :type, default: …`), making it suitable as session-stored root objects.