Sha256: e19172c44f8ac113e7890b7669d4896a421daef0cedce2f672f1f49399aad9fd

Contents?: true

Size: 450 Bytes

Versions: 5

Compression:

Stored size: 450 Bytes

Contents

module C80Contest
  # This line will inherit from the host applications ApplicationController,
  # giving access to your authentication, current_user, etc...
  class ApplicationController < ::ApplicationController

    # noinspection RubyResolve
    before_filter :check_is_active

    private

    def check_is_active
      # noinspection RubyResolve
      unless Setting.first.is_active
        render :plain => 'none'
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
c80_contest-0.1.9 app/controllers/c80_contest/application_controller.rb
c80_contest-0.1.8 app/controllers/c80_contest/application_controller.rb
c80_contest-0.1.7 app/controllers/c80_contest/application_controller.rb
c80_contest-0.1.6 app/controllers/c80_contest/application_controller.rb
c80_contest-0.1.5 app/controllers/c80_contest/application_controller.rb