Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

John Kaczmarek's Profile

GitHub User: JohnKacz

Comments by John Kaczmarek

Avatar

Thanks. Actually the comments for that answer state that zones_map.keys is all you really need. So:

validates_inclusion_of :time_zone, in: ActiveSupport::TimeZone.zones_map.keys