From 66a02688adcf0c076d2ba47ffbdf424994202575 2007-01-24 18:15:27 From: Jean-Philippe Lang Date: 2007-01-24 18:15:27 Subject: [PATCH] Modified GLoc helpers to ensure compatibility with rails 1.2 git-svn-id: http://redmine.rubyforge.org/svn/trunk@173 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/vendor/plugins/gloc-1.1.0/lib/gloc-rails-text.rb b/vendor/plugins/gloc-1.1.0/lib/gloc-rails-text.rb index abbb7a1..f437410 100644 --- a/vendor/plugins/gloc-1.1.0/lib/gloc-rails-text.rb +++ b/vendor/plugins/gloc-1.1.0/lib/gloc-rails-text.rb @@ -115,7 +115,20 @@ module ActionView #:nodoc: select_html(options[:field_name] || 'year', year_options, options[:prefix], options[:include_blank], options[:discard_type], options[:disabled]) end - + + # added by JP Lang + # select_html is a rails private method and changed in 1.2 + # implementation added here for compatibility + def select_html(type, options, prefix = nil, include_blank = false, discard_type = false, disabled = false) + select_html = %(\n" + end end # The private method add_options is overridden so that "Please select" is localized.