blazer.rb 411 B

123456789101112131415161718
  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. attr_accessor :user_name
  9. end
  10. self.audit = true
  11. self.user_name = :name
  12. def self.time_zone=(time_zone)
  13. @time_zone = time_zone.is_a?(ActiveSupport::TimeZone) ? time_zone : ActiveSupport::TimeZone[time_zone.to_s]
  14. end
  15. self.time_zone = Time.zone
  16. end