• Thong Kuah's avatar
    Move non-controller code into dedicated service · cc1ccbf8
    Thong Kuah authored
    This should help with code re-use when we create applications for group
    level cluster next.
    
    Change `find_or_initialize_by` to explicitly find or build the right
    association based on the application name. The benefit here is that we
    use the associations on @cluster rather than querying from the other
    side of the association.
    cc1ccbf8
applications_controller.rb 861 Bytes