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

Version Path
hackathon_manager-0.5.2 lib/hackathon_manager.rb
hackathon_manager-0.5.1 lib/hackathon_manager.rb
hackathon_manager-0.5.0 lib/hackathon_manager.rb
hackathon_manager-0.4.4 lib/hackathon_manager.rb
hackathon_manager-0.4.3 lib/hackathon_manager.rb