Module: HungryHub::DynamicTime

Extended by:
ActiveSupport::Concern
Included in:
Owner, Restaurant, RestaurantGroup, User
Defined in:
app/my_lib/hungry_hub/dynamic_time.rb

Overview

used by ActiveRecord::Base model to support current time of model

Instance Method Summary collapse

Instance Method Details

#time_zoneObject



17
18
19
# File 'app/my_lib/hungry_hub/dynamic_time.rb', line 17

def time_zone
  self['time_zone'] || HungryHub::Time::DEFAULT_ZONE
end