blazer.rb 357 B

12345678910111213141516
  1. require "csv"
  2. require "blazer/version"
  3. require "blazer/engine"
  4. module Blazer
  5. class << self
  6. attr_accessor :audit
  7. attr_reader :time_zone
  8. end
  9. self.audit = true
  10. def self.time_zone=(time_zone)
  11. @time_zone = time_zone.is_a?(ActiveSupport::TimeZone) ? time_zone : ActiveSupport::TimeZone[time_zone.to_s]
  12. end
  13. self.time_zone = Time.zone
  14. end