Class: FeedbackEngine::Feedback
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- FeedbackEngine::Feedback
- Defined in:
- app/models/feedback_engine/feedback.rb
Overview
One piece of user feedback. Author attribution is optional and stored as loose fields (no foreign key to the host's user table) so the model is portable across apps with different user models.
Constant Summary collapse
- STATUSES =
Hand-rolled instead of an AR enum:
openwould collide with Kernel#open as a scope name, and three statuses don't need the machinery anyway. %w[open in_review resolved].freeze
Instance Method Summary collapse
Instance Method Details
#screenshots? ⇒ Boolean
26 27 28 |
# File 'app/models/feedback_engine/feedback.rb', line 26 def screenshots? respond_to?(:screenshots) && screenshots.attached? end |