adds poll and poll question's specs

This commit is contained in:
rgarcia
2016-11-17 22:48:00 +01:00
parent 626a8e9154
commit 4955daf886
6 changed files with 136 additions and 21 deletions

View File

@@ -47,8 +47,7 @@ class Poll::Question < ActiveRecord::Base
end
def answerable_by?(user)
true
#poll.answerable_by?(user) && (self.all_geozones || self.geozone_ids.include?(user.geozone_id))
poll.answerable_by?(user) && (self.all_geozones || self.geozone_ids.include?(user.geozone_id))
end
def self.answerable_by(user)