Module: ActiveadminAddons

Extended by:
ActiveadminAddons
Included in:
ActiveadminAddons
Defined in:
lib/activeadmin_addons.rb,
lib/activeadmin_addons/version.rb,
lib/generators/activeadmin_addons/assets/assets_generator.rb,
lib/generators/activeadmin_addons/install/install_generator.rb,
lib/generators/activeadmin_addons/webpacker/webpacker_generator.rb

Defined Under Namespace

Modules: Generators

Constant Summary collapse

VERSION =
"1.10.2"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#datetime_picker_default_optionsObject



11
12
13
14
# File 'lib/activeadmin_addons.rb', line 11

def datetime_picker_default_options
  return {} unless @datetime_picker_default_options
  @datetime_picker_default_options
end

#datetime_picker_input_formatObject



16
17
18
19
# File 'lib/activeadmin_addons.rb', line 16

def datetime_picker_input_format
  return "%Y-%m-%d %H:%M" unless @datetime_picker_input_format
  @datetime_picker_input_format
end

#default_selectObject



6
7
8
9
# File 'lib/activeadmin_addons.rb', line 6

def default_select
  return "select2" unless @default_select
  @default_select
end

Instance Method Details

#setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



21
22
23
24
# File 'lib/activeadmin_addons.rb', line 21

def setup
  yield self
  require "activeadmin_addons"
end