Skip to content

Commit

Permalink
if "object" doesn't respond to the method specified, it was throwing …
Browse files Browse the repository at this point in the history
…an error. Fixed (thanks, Joe Tanner!)
  • Loading branch information
timcharper committed May 12, 2008
1 parent ab229e8 commit 126f8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/calendar_date_select.rb
Expand Up @@ -154,7 +154,7 @@ def calendar_date_select(object, method, options={})
use_time = options[:time]

if options[:time].to_s=="mixed"
use_time = false if Date===obj.send(method)
use_time = false if Date===(obj.respond_to?(method) && obj.send(method))
end

calendar_options = calendar_date_select_process_options(options)
Expand Down

0 comments on commit 126f8dc

Please sign in to comment.