1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-03-01 01:03:23 -05:00
BikeShed-1/app/controllers/acts_as_loggable/transaction_actions_controller.rb
2013-01-01 21:06:41 -05:00

36 lines
714 B
Ruby

class ActsAsLoggable::TransactionActionsController < AuthenticatedController
#TODO Fix this so updating works
expose(:transaction_action)
expose(:transaction_actions) { ActsAsLoggable::TransactionAction.order('id').paginate(:page => params[:page]) }
def index
end
def show
end
def new
end
def create
if transaction_action.save
redirect_to acts_as_loggable_transaction_actions_url
else
render :new
end
end
def update
if transaction_action.save
redirect_to acts_as_loggable_transaction_actions_url
else
render :edit
end
end
def destroy
transaction_action.destroy
redirect_to acts_as_loggable_transaction_actions_url
end
end