lib/activeadmin_addons.rb in activeadmin_addons-0.12.0 vs lib/activeadmin_addons.rb in activeadmin_addons-1.0.0

- old
+ new

@@ -1,12 +1,22 @@ module ActiveadminAddons extend self - attr_writer :default_select + attr_writer :default_select, :datetime_picker_default_options, :datetime_picker_input_format def default_select return "select2" unless @default_select @default_select + end + + def datetime_picker_default_options + return {} unless @datetime_picker_default_options + @datetime_picker_default_options + end + + def datetime_picker_input_format + return "%Y-%m-%d %H:%M" unless @datetime_picker_input_format + @datetime_picker_input_format end def setup yield self require "activeadmin_addons"