Class: Admin::ClientAccountingController
Class Method Summary
collapse
Instance Method Summary
collapse
append_features
append_features, #controller_url, #define_layout_variables
#controller_id, #define_application_layout_variables, #h_money, #money_for_input
Class Method Details
.active_scaffold_controller_for(klass) ⇒ Object
38
39
40
41
|
# File 'app/controllers/admin/client_accounting_controller.rb', line 38
def self.active_scaffold_controller_for(klass)
(klass == Invoice) ? Admin::InvoicesController : super(klass)
end
|
Instance Method Details
#conditions_for_collection ⇒ Object
43
44
45
|
# File 'app/controllers/admin/client_accounting_controller.rb', line 43
def conditions_for_collection
['is_active = ?', true]
end
|
#custom_finder_options ⇒ Object
47
48
49
|
# File 'app/controllers/admin/client_accounting_controller.rb', line 47
def custom_finder_options
{:from => 'clients_with_balances AS clients'}
end
|