Class: ExpressAdmin::SettingForm

Inherits:
ExpressTemplates::Components::Configurable
  • Object
show all
Defined in:
app/components/express_admin/setting_form.rb

Instance Method Summary collapse

Instance Method Details

#save_button ⇒ Object



15
16
17
# File 'app/components/express_admin/setting_form.rb', line 15

def save_button
  submit_tag 'Save', class: 'button tiny right radius ajax-submit'
end

#settings(setting_type) ⇒ Object



23
24
25
26
27
# File 'app/components/express_admin/setting_form.rb', line 23

def settings(setting_type)
  current_module.settings.send("#{setting_type}_setting").map do |setting|
    edit_setting(setting)
  end.join()
end

#settings_path ⇒ Object



19
20
21
# File 'app/components/express_admin/setting_form.rb', line 19

def settings_path
  helpers.instance_eval("admin_#{current_module_path_name.gsub(/express_/, '')}_settings_path")
end