Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
removed unnecessary code, thanks @coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
gurix committed Jun 24, 2014
1 parent 56048a4 commit 9bdbf5b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/models/helena/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,5 @@ def generate_token(size)
def unique_token_for?(field = :token)
self.class.where(field => send(field)).blank? && send(field).present?
end

def self.available_codes_for(survey)
Session.where(survey: survey).map do |session|
session.answers.map(&:code)
end.flatten.uniq
end
end
end

0 comments on commit 9bdbf5b

Please sign in to comment.