Skip to content

Commit

Permalink
Date can be nullable if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushranjan committed Jan 8, 2011
1 parent ea07163 commit 6e648f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/global_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def date_select(name, date = Date.today, opts={})
attrs.merge!(:size => opts[:size]||20)
attrs.merge!(:min_date => opts[:min_date]||Date.min_date)
attrs.merge!(:max_date => opts[:max_date]||Date.max_date)
attrs.merge!(:nullable => opts[:nullable]) if opts.key?(:nullable)
date_select_html(attrs)
end

Expand Down

0 comments on commit 6e648f9

Please sign in to comment.