Skip to content

Instantly share code, notes, and snippets.

View fatihorhan's full-sized avatar

Fatih Orhan fatihorhan

  • Cisco
  • Istanbul
View GitHub Profile
@fatihorhan
fatihorhan / payments_controller.rb
Last active November 25, 2016 22:54
Bad sample controller with non-CRUD methods
# app/controllers/payments_controller.rb
class PaymentsController < ApplicationController
skip_before_action :verify_authenticity_token, :only => :bank_return
before_action :prevent_blocked_account, only: :create
def index
end
def show
end