Sha256: 06eaffa8cca8433371252030796acd3c602d808db031711915e1a23b8349626e

Contents?: true

Size: 478 Bytes

Versions: 8

Compression:

Stored size: 478 Bytes

Contents

require_dependency "renalware/system"

module Renalware
  module System
    class UserFeedback < ApplicationRecord
      extend Enumerize
      validates :author, presence: true
      validates :category, presence: true
      validates :comment, presence: true

      belongs_to :author, class_name: "User"

      enumerize :category,
                in: %i(urgent_bug non_urgent_bug missing_feature general_comment),
                default: :general_comment
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.8 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.7 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.5 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.4 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.3 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.2 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.1 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.0 app/models/renalware/system/user_feedback.rb