Module: Wice::Columns::CommonStandardDateDatetimeMixin

Included in:
ViewColumnRailsDateHelper, ViewColumnRailsDatetimeHelper
Defined in:
lib/wice/columns/common_standard_helper_date_datetime_mixin.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#prepareObject

:nodoc:



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/wice/columns/common_standard_helper_date_datetime_mixin.rb', line 5

def prepare #:nodoc:
  x = lambda do|sym|
    chunk_names.map do|datetime_chunk_name|
      triple = form_parameter_name_id_and_query(sym => { datetime_chunk_name => '' })
      [triple[0], triple[3]]
    end
  end

  @queris_ids = x.call(:fr) + x.call(:to)

  _, _, @name1, _ = form_parameter_name_id_and_query(fr: '')
  _, _, @name2, _ = form_parameter_name_id_and_query(to: '')
end