Module ActionView::Helpers::DateHelper
In: lib/localization_simplified.rb

Modify DateHelper to use text from lang-file

Methods

External Aliases

distance_of_time_in_words -> old_distance_of_time_in_words
  Modify DateHelper distance_of_time_in_words
date_select -> orig_date_select
datetime_select -> orig_datetime_select

Public Instance methods

Blend default options with localized :order option

[Source]

     # File lib/localization_simplified.rb, line 117
117:       def date_select(object_name, method, options = {})
118:         options.reverse_merge!(LocalizationSimplified::DateHelper::DateSelectOrder)
119:         orig_date_select(object_name, method, options)
120:       end

Blend default options with localized :order option

[Source]

     # File lib/localization_simplified.rb, line 126
126:       def datetime_select(object_name, method, options = {})
127:         options.reverse_merge!(LocalizationSimplified::DateHelper::DateSelectOrder)
128:         orig_datetime_select(object_name, method, options)
129:       end

[Source]

    # File lib/localization_simplified.rb, line 93
93:       def distance_of_time_in_words(from_time, to_time = 0, include_seconds = false)
94:         LocalizationSimplified::distance_of_time_in_words(from_time, to_time, include_seconds)
95:       end

[Validate]