Permalink
Browse files

Updated version to work with formtastic 0.9.2 and above.

WARNING - Breaks backwards compatibility with 0.9.1 and lower
  • Loading branch information...
1 parent a458029 commit 8566209138c22fe60aa271c3f174d55f7c5d9f74 @elandesign committed Dec 14, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/formtastic_calendar.rb
@@ -9,7 +9,7 @@ module Calendar
#
def calendar_input(method, options = {})
format = options[:format] || ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS[:default] || '%d %b %Y'
- input_simple(:string, method, calendar_options(format, object.send(method)).merge(options))
+ string_input(method, calendar_options(format, object.send(method)).merge(options))
end
# Generate html input options for the calendar_input

0 comments on commit 8566209

Please sign in to comment.