diff --git a/temp_file/app/helpers/orbit_form_helper.rb b/temp_file/app/helpers/orbit_form_helper.rb index 90c38fc..0ada35f 100644 --- a/temp_file/app/helpers/orbit_form_helper.rb +++ b/temp_file/app/helpers/orbit_form_helper.rb @@ -8,6 +8,10 @@ module OrbitFormHelper end def datetime_picker(object_name, options = {}) + def objectify_options(options) + @default_options = {} if @default_options.class != Hash + @default_options.merge(options.merge(object: @object)) + end options[:icon_time] ||= 'icons-clock' options[:icon_date] ||= 'icons-calendar' options[:icon_clear] ||= 'icons-cross-3'