Class: Ideasbugs::Feedback
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Ideasbugs::Feedback
- Defined in:
- app/models/ideasbugs/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
31 32 33 |
# File 'app/models/ideasbugs/feedback.rb', line 31 def screenshots? respond_to?(:screenshots) && screenshots.attached? end |