You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: features_controller.rb
    path of file: ./repos/system_tester/app/controllers/system_tester
    
    the code of the file until where you have to start completion: require_dependency "system_tester/application_controller"

module SystemTester
  class FeaturesCo
    
    def update
      feature = Feature.find(params[:id])
      if feature.update(feature_params)
        render json: feature.to_json(feature_json_options)
      else
        render json: { errors: feature.errors }, status: :unprocessable_entity
      end