diff options
author | Jan Dupal <dupal.j@gmail.com> | 2011-11-22 23:07:22 +0100 |
---|---|---|
committer | Jan Dupal <dupal.j@gmail.com> | 2011-11-22 23:07:22 +0100 |
commit | 57d9f8b924039ed5f57fc3e9cad640c5c61eb84b (patch) | |
tree | 76f1c42bd206253a8015592cd0726e6c3dced533 /actionpack/lib/action_view | |
parent | b13b49ccc17a04836fdc877094eab4c951e69e66 (diff) | |
download | rails-57d9f8b924039ed5f57fc3e9cad640c5c61eb84b.tar.gz rails-57d9f8b924039ed5f57fc3e9cad640c5c61eb84b.tar.bz2 rails-57d9f8b924039ed5f57fc3e9cad640c5c61eb84b.zip |
fix Helpers::DateHelper with :use_hidden - hide separators
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/date_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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] |