Created
July 3, 2018 19:55
-
-
Save afcapel/5ed857b321c9d528e4ad397006b9c05a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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