Sha256: 78039c5caee0f977e26fc39f6364c7a09cf254784d215ef39f904d87799a1ae5
Contents?: true
Size: 472 Bytes
Versions: 4
Compression:
Stored size: 472 Bytes
Contents
class User < ApplicationRecord include LiveRecord::Model::Callbacks has_many :live_record_updates, as: :recordable, dependent: :destroy has_many :posts def self.live_record_whitelisted_attributes(user, current_user) # Add attributes to this array that you would like current_user to have access to. # Defaults to empty array, thereby blocking everything by default, only unless explicitly stated here so. [:email, :created_at, :updated_at] end end
Version data entries
4 entries across 4 versions & 1 rubygems