Sha256: ba364a01b3c4d78a8592ebc95761f3651249db53d6fcda041a343d347d0cd248

Contents?: true

Size: 326 Bytes

Versions: 6

Compression:

Stored size: 326 Bytes

Contents

module Sequins
  class Configuration
    attr_accessor :default_time_zone

    def initialize
      if Object.const_defined?('Rails') && !Rails.configuration.time_zone.nil?
        self.default_time_zone = Rails.configuration.time_zone
      else
        self.default_time_zone = 'America/Chicago'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sequins-0.1.5 lib/sequins/configuration.rb
sequins-0.1.4 lib/sequins/configuration.rb
sequins-0.1.3 lib/sequins/configuration.rb
sequins-0.1.2 lib/sequins/configuration.rb
sequins-0.1.1 lib/sequins/configuration.rb
sequins-0.1.0 lib/sequins/configuration.rb