The data should be validated first before calling send, e.g.

        [..] unless PowerManager::SUPPORTED_ACTIONS.include? (params[:power_action])