Sha256: 5d5ef659c6e8d232303b96b342cb0045ad2e40d15532ab357b6aea6091018c39

Contents?: true

Size: 408 Bytes

Versions: 11

Compression:

Stored size: 408 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(general bug missing_feature), default: :general
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc13 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.0.pre.rc11 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.0.pre.rc10 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.0.pre.rc9 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.0.pre.rc8 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.0.pre.rc7 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.0.pre.rc6 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.0.pre.rc5 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.0.pre.rc4 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.0.pre.rc3 app/models/renalware/system/user_feedback.rb
renalware-core-2.0.0.pre.rc1 app/models/renalware/system/user_feedback.rb