Module: FlyAdmin::SettingsHelper
- Included in:
- UploadsController
- Defined in:
- app/helpers/fly_admin/settings_helper.rb
Instance Method Summary collapse
Instance Method Details
#custom_checkbox_tag ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/helpers/fly_admin/settings_helper.rb', line 3 def custom_checkbox_tag if daemon_enabled? check_box_tag 'daemon', '1', true else check_box_tag 'daemon', '1', false end end |
#daemon_enabled? ⇒ Boolean
11 12 13 |
# File 'app/helpers/fly_admin/settings_helper.rb', line 11 def daemon_enabled? File.exists?("#{Rails.root}/tmp/pids/video_converter.pid") end |