From d194f962dd0f84bfa600b9495f6f5775942560d4 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 3 Nov 2020 13:17:13 +0800 Subject: [PATCH] Update orbit_form_helper.rb --- temp_file/app/helpers/orbit_form_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) 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'