Sha256: 45713943b40406bb4aceb67354bce7c0136c6586988966f6b8e9cc303ea3c668
Contents?: true
Size: 312 Bytes
Versions: 39
Compression:
Stored size: 312 Bytes
Contents
class ApplicationController < ActionController::Base protect_from_forgery rescue_from CanCan::AccessDenied do |exception| redirect_to '/' end def authenticate_terminal @terminal = Terminal.find_by_keyword(params[:terminal]) render :text => nil, :status => 404 if @terminal.blank? end end
Version data entries
39 entries across 39 versions & 1 rubygems