Merge branch 'master' of github.com:ZeusWPI/Tab
This commit is contained in:
commit
b66a06f139
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
class TransactionsController < ApplicationController
|
||||
skip_before_filter :verify_authenticity_token, :only => :create
|
||||
|
||||
def index
|
||||
@transactions = Transaction.all
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue