blazer.rb 431 B

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