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