Class: Admin::ClientAccountingController

Inherits:
ApplicationController
  • Object
show all
Includes:
AdminLayoutHelper, ExtensibleObjectHelper
Defined in:
app/controllers/admin/client_accounting_controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ExtensibleObjectHelper

append_features

Methods included from AdminLayoutHelper

append_features, #controller_url, #define_layout_variables

Methods included from ApplicationHelper

#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)
  # A hack since there's a view in use on this controller
  (klass == Invoice) ? Admin::InvoicesController : super(klass)
end

Instance Method Details

#conditions_for_collectionObject



43
44
45
# File 'app/controllers/admin/client_accounting_controller.rb', line 43

def conditions_for_collection
  ['is_active = ?', true]
end

#custom_finder_optionsObject



47
48
49
# File 'app/controllers/admin/client_accounting_controller.rb', line 47

def custom_finder_options
  {:from => 'clients_with_balances AS clients'}
end