Sha256: 1c46c8365dfa81d2fe084998d84d29415f128d7c9f480aed949a395cfba9043c

Contents?: true

Size: 351 Bytes

Versions: 3

Compression:

Stored size: 351 Bytes

Contents

module C80Contest
  class ApplicationController < ActionController::Base
    protect_from_forgery with: :exception

    # 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

3 entries across 3 versions & 1 rubygems

Version Path
c80_contest-0.1.4 app/controllers/c80_contest/application_controller.rb
c80_contest-0.1.3 app/controllers/c80_contest/application_controller.rb
c80_contest-0.1.2 app/controllers/c80_contest/application_controller.rb