class Feedback < ActiveRecord::Base
  belongs_to :post

  def is_positive?
    self.feedback_type.include? "tp"
  end
  def is_negative?
    self.feedback_type.include? "fp"
  end
end

class Feedback < ActiveRecord::Base
  belongs_to :post

  def is_positive?
    self.feedback_type.include? "t"
  end
  def is_negative?
    self.feedback_type.include? "f"
  end
end

Include 'true' and 'false' in statistics
Include 'true' and 'false' in statistics

http://chat.stackexchange.com/transcript/message/26994116#26994116