Sha256: 31d9873c4e6050061d08751853d8d59e887d47a5420e4430a2c52f7a54e87c28

Contents?: true

Size: 275 Bytes

Versions: 5

Compression:

Stored size: 275 Bytes

Contents

class Evento
  include ActiveModel::API
  include ActionText::Attribute
  extend Enumerize

  attr_accessor :tooltip, :target, :message, :type, :record_type, :record_id

  validates :target, :type, :message, presence: true

  enumerize :target, in: { todos: 0, devs: 1 }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pg_rails-7.0.8.pre.alpha.108 pg_engine/app/models/evento.rb
pg_rails-7.0.8.pre.alpha.107 pg_engine/app/models/evento.rb
pg_rails-7.0.8.pre.alpha.106 pg_engine/app/models/evento.rb
pg_rails-7.0.8.pre.alpha.105 pg_engine/app/models/evento.rb
pg_rails-7.0.8.pre.alpha.104 pg_engine/app/models/evento.rb