Skip to content
Browse files

Use InvoicesController as parent for Debit and Credit Invoice control…

…lers.
  • Loading branch information...
1 parent 3e41631 commit 0c958792d9f4856465c7e42ba5fe6509a03fee92 @huerlisi huerlisi committed
Showing with 2 additions and 14 deletions.
  1. +1 −5 app/controllers/credit_invoices_controller.rb
  2. +1 −9 app/controllers/debit_invoices_controller.rb
View
6 app/controllers/credit_invoices_controller.rb
@@ -1,8 +1,4 @@
-class CreditInvoicesController < AuthorizedController
- # States
- has_scope :by_state
- has_scope :by_text
-
+class CreditInvoicesController < InvoicesController
# Actions
def new
# Allow pre-seeding some parameters
View
10 app/controllers/debit_invoices_controller.rb
@@ -1,8 +1,4 @@
-class DebitInvoicesController < AuthorizedController
- # States
- has_scope :by_state
- has_scope :by_text
-
+class DebitInvoicesController < InvoicesController
# Actions
def new
# Allow pre-seeding some parameters
@@ -30,8 +26,4 @@ def create
create!
end
-
- def letter
- show!
- end
end

0 comments on commit 0c95879

Please sign in to comment.
Something went wrong with that request. Please try again.