Class: FeedbackResponse

Inherits:
ApplicationRecord
  • Object
show all
Includes:
Checkable, HasOwner, HasTrack, HasUuid, Toggleable
Defined in:
app/models/feedback_response.rb

Overview

Response to feedback message

Attributes:

agent_id [Agent], optional
body [text]
created_at [DateTime]
data [jsonb]
feedback_message_id [FeedbackMessage]
ip_address_id [IpAddress], optional
updated_at [DateTime]
user_id [User], optional
uuid [uuid]
visible [boolean]

Constant Summary collapse

BODY_LIMIT =
5000

Class Method Summary collapse

Methods included from HasOwner

#owned_by?, #owner_name

Class Method Details

.creation_parametersObject



47
48
49
# File 'app/models/feedback_response.rb', line 47

def self.creation_parameters
  entity_parameters + i[feedback_message_id]
end

.entity_parametersObject



43
44
45
# File 'app/models/feedback_response.rb', line 43

def self.entity_parameters
  i[body]
end

.page_for_administration(page = 1) ⇒ Object

Parameters:

  • page (Integer) (defaults to: 1)


39
40
41
# File 'app/models/feedback_response.rb', line 39

def self.page_for_administration(page = 1)
  list_for_administration.page(page)
end