Module CustomersHelper
In: app/helpers/customers_helper.rb
File:customers_helper.rb
(C):Hipposoft 2008, 2009
Purpose:Support functions for views related to Customer objects. See controllers/customers_controller.rb for more.

          04-Jan-2008 (ADH): Created.

Methods

Public Instance methods

Return list actions appropriate for the given customer

[Source]

    # File app/helpers/customers_helper.rb, line 15
15:   def customerhelp_actions( customer )
16:     if ( @current_user.admin? or ( customer.active and @current_user.manager? ) )
17:       actions = [ 'edit', 'delete' ]
18:     else
19:       actions = []
20:     end
21: 
22:     actions.push( 'show' )
23:     return actions
24:   end

[Validate]