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.0"
Instance Attribute Summary collapse
- #datetime_picker_default_options ⇒ Object
- #datetime_picker_input_format ⇒ Object
- #default_select ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#datetime_picker_default_options ⇒ Object
11 12 13 14 |
# File 'lib/activeadmin_addons.rb', line 11 def return {} unless @datetime_picker_default_options @datetime_picker_default_options end |
#datetime_picker_input_format ⇒ Object
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_select ⇒ Object
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
21 22 23 24 |
# File 'lib/activeadmin_addons.rb', line 21 def setup yield self require "activeadmin_addons" end |