Skip to content

Instantly share code, notes, and snippets.

@afcapel
Created July 3, 2018 19:55
Show Gist options
  • Save afcapel/5ed857b321c9d528e4ad397006b9c05a to your computer and use it in GitHub Desktop.
Save afcapel/5ed857b321c9d528e4ad397006b9c05a to your computer and use it in GitHub Desktop.
class Invoice < ApplicationRecord
include AccountScoped
end
class InvoicesController < ApplicationController
def show
@invoice = Invoice.in_current_account.find(params[:id])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment