Sha256: f9ef23ff0978d314c7e236c3f2176e08790e726161f03a1722a82ab169c30a37
Contents?: true
Size: 440 Bytes
Versions: 5
Compression:
Stored size: 440 Bytes
Contents
require "hackathon_manager/engine" module HackathonManager def self.reload_config(app) hackathon = app.config_for(:hackathon) # Applications without a specified config.time_zone will parse # this as a string instead of a DateTime if hackathon['last_day_to_apply'].is_a?(String) hackathon['last_day_to_apply'] = DateTime.parse(hackathon['last_day_to_apply']) end app.config.hackathon = hackathon end end
Version data entries
5 entries across 5 versions & 1 rubygems