Sha256: 13a0fd629d6952b8d5da4a6d7d6dd9de44d2fdf5a21f2da0acf213aeea5a59db
Contents?: true
Size: 377 Bytes
Versions: 8
Compression:
Stored size: 377 Bytes
Contents
# frozen_string_literal :true module ActionTracker module Models class User < ActionTracker::Models::ApplicationRecord attribute :id, Integer attribute :name, String attribute :type, String validates :id, :name, :type, presence: true def self.default_user new(id: 0, name: 'Anonymous', type: 'System') end end end end
Version data entries
8 entries across 8 versions & 1 rubygems