Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use InvoicesController as parent for Debit and Credit Invoice control…

…lers.
  • Loading branch information...
commit 0c958792d9f4856465c7e42ba5fe6509a03fee92 1 parent 3e41631
@huerlisi huerlisi authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.