Merge branch 'master' of github.com:ZeusWPI/Tab

This commit is contained in:
Ilion Beyst 2015-09-09 12:53:28 +02:00
commit b66a06f139
2 changed files with 1 additions and 3 deletions

View file

@ -1,7 +1,7 @@
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
protect_from_forgery with: :null_session
rescue_from CanCan::AccessDenied do |exception|
redirect_to root_url, alert: exception.message

View file

@ -1,6 +1,4 @@
class TransactionsController < ApplicationController
skip_before_filter :verify_authenticity_token, :only => :create
def index
@transactions = Transaction.all
end