Class: Zonebie::Backends::ActiveSupport
- Inherits:
-
Object
- Object
- Zonebie::Backends::ActiveSupport
- Defined in:
- lib/zonebie/backends/active_support.rb
Class Method Summary collapse
Class Method Details
.name ⇒ Object
11 12 13 |
# File 'lib/zonebie/backends/active_support.rb', line 11 def name :activesupport end |
.usable? ⇒ 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 |
.zones ⇒ Object
15 16 17 |
# File 'lib/zonebie/backends/active_support.rb', line 15 def zones ::ActiveSupport::TimeZone.all.map(&:name) end |