metamaps--metamaps/app/models/follow_reason.rb
Connor Turland 713f731aaf follows
2017-02-10 00:37:25 +00:00

12 lines
No EOL
315 B
Ruby

# frozen_string_literal: true
class FollowReason < ApplicationRecord
REASONS = %w(created commented contributed followed shared_on starred).freeze
belongs_to :follow
validates :follow, presence: true
def has_reason
created || commented || contributed || followed || shared_on || starred
end
end