Update orbit_form_helper.rb
This commit is contained in:
parent
19ea23c177
commit
d194f962dd
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue