metamaps--metamaps/config/initializers/internal_testers.rb

13 lines
318 B
Ruby
Raw Permalink Normal View History

2017-10-17 01:15:47 +00:00
# frozen_string_literal: true
TESTER_EMAILS = %w[
connorturland@gmail.com devin@callysto.com chessscholar@gmail.com solaureum@gmail.com
ishanshapiro@gmail.com
].freeze
# rubocop:disable Style/PredicateName
def is_tester(user)
2017-10-17 01:15:47 +00:00
user && TESTER_EMAILS.include?(user.email)
end
2017-10-17 01:15:47 +00:00
# rubocop:enable Style/PredicateName