blazer.rb 535 B

1234567891011121314151617181920212223
  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. attr_accessor :user_class
  11. attr_accessor :timeout
  12. end
  13. self.audit = true
  14. self.user_name = :name
  15. self.timeout = 15
  16. self.user_class = "User"
  17. def self.time_zone=(time_zone)
  18. @time_zone = time_zone.is_a?(ActiveSupport::TimeZone) ? time_zone : ActiveSupport::TimeZone[time_zone.to_s]
  19. end
  20. self.time_zone = Time.zone
  21. end