class Feedback
  include ActiveModel::Model

  attr_accessor :text
  attr_accessor :email
  attr_accessor :referrer
  attr_accessor :user_agent
  attr_accessor :prison

  validates_presence_of :text
  validates :email, email: true, if: ->(f) { f.email.present? }
end
