Module: ActionView::Helpers::DateHelper

Defined in:
lib/quarter_date_select.rb

Instance Method Summary collapse

Instance Method Details

#quarter_date_select(object_name, method, options = {}, html_options = {}) ⇒ Object



8
9
10
# File 'lib/quarter_date_select.rb', line 8

def quarter_date_select(object_name, method, options = {}, html_options = {})
  Tags::QuarterDateSelect.new(object_name, method, self, options, html_options).render
end

#select_quarter(date, options = {}, html_options = {}) ⇒ Object



12
13
14
# File 'lib/quarter_date_select.rb', line 12

def select_quarter(date, options = {}, html_options = {})
  DateTimeSelector.new(date, options, html_options).select_quarter
end