Class: InvoicesController
- Inherits:
-
AuthorizedController
- Object
- InheritedResources::Base
- AuthorizedController
- InvoicesController
- Defined in:
- app/controllers/invoices_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
- #letter ⇒ Object
-
#new ⇒ Object
Actions.
Methods inherited from AuthorizedController
Instance Method Details
#letter ⇒ Object
18 19 20 |
# File 'app/controllers/invoices_controller.rb', line 18 def letter show! end |
#new ⇒ Object
Actions
10 11 12 13 14 15 16 |
# File 'app/controllers/invoices_controller.rb', line 10 def new invoice_params = params[:invoice] || {} invoice_params.merge!(:company_id => current_tenant.company.id) @invoice = Invoice.new(invoice_params) new! end |