Permalink
Browse files

make this a bit more generic

  • Loading branch information...
1 parent 9ccff73 commit 2c4f5c990a14e48e4b8fa6e008aa551ad78d6075 @justinfrench committed Feb 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/formtastic/inputs/base.rb
@@ -20,7 +20,7 @@ def initialize(builder, template, object, object_name, method, options)
# Usefull for deprecating options.
def warn_and_correct_option!(old_option_name, new_option_name)
if options.key?(old_option_name)
- ::ActiveSupport::Deprecation.warn("The :#{old_option_name} option is deprecated in favour of :#{new_option_name} and will be removed from Formtastic after 2.0")
+ ::ActiveSupport::Deprecation.warn("The :#{old_option_name} option is deprecated in favour of :#{new_option_name} and will be removed from Formtastic in the next version")
options[new_option_name] = options.delete(old_option_name)
end
end

0 comments on commit 2c4f5c9

Please sign in to comment.