molten-trunk/molten5_withgrid/app/controllers/admin/contacts_controller.rb
# Enables the user by setting 'portal_privilege' in both the associated Salesforce
# record and the local record to 'Member'.
Enables the user by setting 'portal_privilege' in both the associated Salesforce
record and the local record to 'Member'.
Enables the user by setting ' portal_privilege ' in both the associated Salesforce record and the local record to ' Member ' .
def enable
    @contact = Sfcontact.find_by_sf_id(params[:id])
    sf_contact = Contact.find(@contact.id)
    sf_contact.portal_privilege__c = AppConstants::PRIVILEGE[:member]
    sf_contact.save_and_update
  end
def enable @contact = Sfcontact . find_by_sf_id ( params [ :id ] ) sf_contact = Contact . find ( @contact . id ) sf_contact . portal_privilege__c = AppConstants :: PRIVILEGE [ :member ] sf_contact . save_and_update end
Enables the user by setting 'portal_privilege' in both the associated Salesforce
record and the local record to 'Member'.
Enables the user by setting ' portal_privilege ' in both the associated Salesforce record and the local record to ' Member ' .