Module: AppsettingsHelper

Defined in:
lib/six-updater-web/app/helpers/appsettings_helper.rb

Instance Method Summary collapse

Instance Method Details

#exe_column(record, b = nil) ⇒ Object



6
7
8
# File 'lib/six-updater-web/app/helpers/appsettings_helper.rb', line 6

def exe_column(record, b = nil)
  record.real_exe
end

#logpath_column(record, b = nil) ⇒ Object



14
15
16
# File 'lib/six-updater-web/app/helpers/appsettings_helper.rb', line 14

def logpath_column(record, b = nil)
  record.real_logpath
end

#params_column(record, b = nil) ⇒ Object



10
11
12
# File 'lib/six-updater-web/app/helpers/appsettings_helper.rb', line 10

def params_column(record, b = nil)
  record.real_params
end

#path_column(record, b = nil) ⇒ Object



2
3
4
# File 'lib/six-updater-web/app/helpers/appsettings_helper.rb', line 2

def path_column(record, b = nil)
  record.real_path
end

#type_column(record, b = nil) ⇒ Object



18
19
20
# File 'lib/six-updater-web/app/helpers/appsettings_helper.rb', line 18

def type_column(record, b = nil)
  record.class.label
end

#type_form_column(record, t, options) ⇒ Object



22
23
24
# File 'lib/six-updater-web/app/helpers/appsettings_helper.rb', line 22

def type_form_column(record, t, options)
  collection_select(:record, :type, ["Arma2Appsetting", "Arma2StAppsetting", "Arma2OaAppsetting", "Arma2OaStAppsetting", "Arma2OaCoAppsetting"], :to_s, :to_s, {}, {:name => options[:name]})
end