Module: ActionView::Helpers::DateHelper
- Defined in:
- lib/quarter_date_select.rb
Instance Method Summary collapse
- #quarter_date_select(object_name, method, options = {}, html_options = {}) ⇒ Object
- #select_quarter(date, options = {}, html_options = {}) ⇒ Object
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, = {}, = {}) Tags::QuarterDateSelect.new(object_name, method, self, , ).render end |
#select_quarter(date, options = {}, html_options = {}) ⇒ Object
12 13 14 |
# File 'lib/quarter_date_select.rb', line 12 def select_quarter(date, = {}, = {}) DateTimeSelector.new(date, , ).select_quarter end |