aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_view/helpers/tags/week_field.rb
blob: 1e13939a0a86cad1ea1f2611abcd8d4209874126 (plain) (tree)
1
2
3
4
5
6
7


                 
                                              

               
                                





                                          
module ActionView
  module Helpers
    module Tags
      class WeekField < DatetimeField #:nodoc:
        private

          def format_date(value)
            value.try(:strftime, "%Y-W%W")
          end
      end
    end
  end
end