Class: Zonebie::Backends::ActiveSupport

Inherits:
Object
  • Object
show all
Defined in:
lib/zonebie/backends/active_support.rb

Class Method Summary collapse

Class Method Details

.nameObject



11
12
13
# File 'lib/zonebie/backends/active_support.rb', line 11

def name
  :activesupport
end

.usable?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/zonebie/backends/active_support.rb', line 23

def usable?
  defined?(::ActiveSupport)
end

.zone=(zone) ⇒ Object



19
20
21
# File 'lib/zonebie/backends/active_support.rb', line 19

def zone=(zone)
  ::Time.zone = zone
end

.zonesObject



15
16
17
# File 'lib/zonebie/backends/active_support.rb', line 15

def zones
  ::ActiveSupport::TimeZone.all.map(&:name)
end