From 57d9f8b924039ed5f57fc3e9cad640c5c61eb84b Mon Sep 17 00:00:00 2001 From: Jan Dupal Date: Tue, 22 Nov 2011 23:07:22 +0100 Subject: fix Helpers::DateHelper with :use_hidden - hide separators --- actionpack/lib/action_view/helpers/date_helper.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb index 4deb87180c..c9620ebd41 100644 --- a/actionpack/lib/action_view/helpers/date_helper.rb +++ b/actionpack/lib/action_view/helpers/date_helper.rb @@ -953,6 +953,8 @@ module ActionView # Returns the separator for a given datetime component. def separator(type) + return "" if @options[:use_hidden] + case type when :year @options[:discard_year] ? "" : @options[:date_separator] -- cgit v1.2.3