Sha256: 5f15006c51e26507d6aca74adbb860e516b1255b50728429234fb43a9a838c19

Contents?: true

Size: 242 Bytes

Versions: 3

Compression:

Stored size: 242 Bytes

Contents

module Antispam
  class ApplicationController < ::ApplicationController
    def must_be_admin
      begin
        render plain: 'Not available.' unless is_admin?
      rescue
        render plain: 'Not available.'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
antispam-0.2.0 app/controllers/antispam/application_controller.rb
antispam-0.1.7 app/controllers/antispam/application_controller.rb
antispam-0.1.5 app/controllers/antispam/application_controller.rb