app/helpers/timepiece_helper.rb in timepiece-0.1.3 vs app/helpers/timepiece_helper.rb in timepiece-0.1.4
- old
+ new
@@ -1,6 +1,6 @@
module TimepieceHelper
- def timepiece(location = 'UTC', type = '24', lead = 'none', abbr_sep = 'none')
+ def timepiece(location = 'UTC', type: '24', lead: 'none', abbr_sep: 'none')
Time.zone = location
hours = Time.now.in_time_zone.strftime('%H')
minutes = Time.now.in_time_zone.strftime('%M')
seconds = Time.now.in_time_zone.strftime('%S')
if type == '12'
\ No newline at end of file