Sha256: 615a5e5105354c0f968b36c60bd50fe5ee0ec4da542f6e2c646e9204334b3525

Contents?: true

Size: 231 Bytes

Versions: 94

Compression:

Stored size: 231 Bytes

Contents

module DateRangeHelper
  def date_range(start_date, end_date)
    starts = start_date.strftime('%-d %B %Y')
    ends = end_date.strftime('%-d %B %Y')
    return starts if start_date == end_date

    "#{starts} - #{ends}"
  end
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
station-0.0.131 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.130 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.129 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.128 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.127 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.126 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.125 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.124 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.123 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.122 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.121 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.120 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.119 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.118 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.115 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.114 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.113 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.112 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.111 lib/nexmo_developer/app/helpers/date_range_helper.rb
station-0.0.110 lib/nexmo_developer/app/helpers/date_range_helper.rb