Class: Notee::Post

Inherits:
ApplicationRecord show all
Defined in:
app/models/notee/post.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ApplicationRecord

#create_authority, #destroy_authority, #is_destroy?, #skip_callback_block, #update_authority

Instance Attribute Details

#editor_idObject

accessors



33
34
35
# File 'app/models/notee/post.rb', line 33

def editor_id
  @editor_id
end

Instance Method Details

#set_user_idObject



35
36
37
# File 'app/models/notee/post.rb', line 35

def set_user_id
  self.user_id = Authority.get_user_id
end