module PunctualDateSelect::Helper::Builder

Public Instance Methods

punctual_date_select(method, options={}, html_options={}) click to toggle source
# File lib/punctual_date_select/helper.rb, line 4
def punctual_date_select(method, options={}, html_options={})
  value = object.send(method)
  value ||= Date.current if options[:prompt].nil?
  @template.select_date(value, {:prefix => "#{@object_name}[#{method}]"}.merge(options), html_options)
end