Class: Post

Inherits:
ApplicationRecord show all
Includes:
LiveRecord::Model::Callbacks
Defined in:
lib/live_record/spec/internal/app/models/post.rb

Class Method Summary collapse

Class Method Details

.live_record_whitelisted_attributes(post, current_user) ⇒ Object



6
7
8
9
10
# File 'lib/live_record/spec/internal/app/models/post.rb', line 6

def self.live_record_whitelisted_attributes(post, 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.
 [:title]
end