Sha256: be6fbd4c19caa13361cf7517d7c6038f71b039f276befb5554f7b96a9fe26f21

Contents?: true

Size: 623 Bytes

Versions: 18

Compression:

Stored size: 623 Bytes

Contents

module ActiveadminAddons
  extend self

  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"
  end
end

require_relative './activeadmin_addons/engine'

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
activeadmin_addons-1.10.1 lib/activeadmin_addons.rb
activeadmin_addons-1.10.0 lib/activeadmin_addons.rb
activeadmin_addons-1.9.0 lib/activeadmin_addons.rb
activeadmin_addons-1.8.3 lib/activeadmin_addons.rb
activeadmin_addons-1.8.2 lib/activeadmin_addons.rb
activeadmin_addons_rails6-1.7.2 lib/activeadmin_addons.rb
activeadmin_addons-1.7.1 lib/activeadmin_addons.rb
activeadmin_addons-1.7.0 lib/activeadmin_addons.rb
activeadmin_addons-1.6.0 lib/activeadmin_addons.rb
activeadmin_addons-1.5.0 lib/activeadmin_addons.rb
activeadmin_addons-1.4.0 lib/activeadmin_addons.rb
activeadmin_addons-1.3.0 lib/activeadmin_addons.rb
activeadmin_addons-1.2.0 lib/activeadmin_addons.rb
activeadmin_addons-1.1.2 lib/activeadmin_addons.rb
activeadmin_addons-1.1.1 lib/activeadmin_addons.rb
activeadmin_addons-1.1.0 lib/activeadmin_addons.rb
activeadmin_addons-1.0.1 lib/activeadmin_addons.rb
activeadmin_addons-1.0.0 lib/activeadmin_addons.rb