Sha256: cec8e2d2cba5f2fa19ee7eade28554fb8c12efb0b4d108253608e5b23d54980a

Contents?: true

Size: 315 Bytes

Versions: 8

Compression:

Stored size: 315 Bytes

Contents

module FlyAdmin
  module SettingsHelper
    def custom_checkbox_tag
      if daemon_enabled?
        check_box_tag 'daemon', '1', true
      else
        check_box_tag 'daemon', '1', false
      end
    end

    def daemon_enabled?
      File.exists?("#{Rails.root}/tmp/pids/video_converter.pid")
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fly_admin-0.0.8 app/helpers/fly_admin/settings_helper.rb
fly_admin-0.0.7 app/helpers/fly_admin/settings_helper.rb
fly_admin-0.0.6 app/helpers/fly_admin/settings_helper.rb
fly_admin-0.0.5 app/helpers/fly_admin/settings_helper.rb
fly_admin-0.0.4 app/helpers/fly_admin/settings_helper.rb
fly_admin-0.0.3 app/helpers/fly_admin/settings_helper.rb
fly_admin-0.0.2 app/helpers/fly_admin/settings_helper.rb
fly_admin-0.0.1 app/helpers/fly_admin/settings_helper.rb