Sha256: f2ecb92dc7c236b4a941cf335fb14cf763255af29d772baa4dfce8a5e810e0ae

Contents?: true

Size: 146 Bytes

Versions: 3

Compression:

Stored size: 146 Bytes

Contents

Time::DATE_FORMATS[:url_part] = lambda { |time| 
  month = time.strftime('%m').gsub(/^0/, '')
  time.strftime("%Y/#{month}/%e").gsub(/\s+/, '')
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jabe-0.5.9 config/initializers/time_formats.rb
jabe-0.5.8 config/initializers/time_formats.rb
jabe-0.5.7 config/initializers/time_formats.rb