Sha256: 56106fd5fbfe5ca36ca4d7f43dfa0766015ad9fddb83b666a1ddaacfea665c71

Contents?: true

Size: 630 Bytes

Versions: 3

Compression:

Stored size: 630 Bytes

Contents

module ActiveadminAddons
  extend self

  attr_writer :default_select, :datetime_picker_default_options, :datetime_picker_input_format

  def default_select
    return "slim-select" 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

3 entries across 3 versions & 1 rubygems

Version Path
activeadmin_addons-2.0.0.beta.4 lib/activeadmin_addons.rb
activeadmin_addons-2.0.0.beta.3 lib/activeadmin_addons.rb
activeadmin_addons-2.0.0.beta.2 lib/activeadmin_addons.rb