now use cc_rails attributes not cc_rails_portal

Also this takes care of the case where an application
is not a cc_rails_portal