Module: ScheduleAttributes::DateHelpers
- Defined in:
- lib/schedule_attributes/time_helpers.rb
Class Method Summary collapse
Class Method Details
.today ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/schedule_attributes/time_helpers.rb', line 28 def self.today if Time.respond_to?(:zone) && Time.zone Date.current else Date.today end end |